Compare commits

..

No commits in common. "0a8b8396c822b6d1063c7e18987b29b81be4dae2" and "e1a6bcde8f7c6d6dc86e40b8d8a978cb8bcec230" have entirely different histories.

2 changed files with 0 additions and 38 deletions

View File

@ -1,38 +0,0 @@
%% please open Magic Formular APP first
clear
n = 20; % <=60
%%
directoryPath = "..\sorted_data";
subdirectories = getSubdirectories(directoryPath);
%%
% Use the dir function to get information about files and directories
contents = dir(directoryPath);
% Filter out the directories (excluding '.' and '..')
subdirectories_list = contents([contents.isdir] & ~ismember({contents.name}, {'.', '..'}));
% Extract and display the names of the subdirectories
subdirectoryNames = {subdirectories_list.name};
%%
figure()
for i=1:length(subdirectories)
fileMeasurement = fullfile("..\sorted_data", subdirectories{i}, "\cornering.mat");
parser = tydex.parsers.FSAETTC_SI_ISO_Mat();
measurements = parser.run(fileMeasurement);
measurement = measurements(n);
[SX,SA,FZ,IP,IA,VX,FX,FY,MZ,MY,MX,W,T] = unpack(measurement);
if i < length(subdirectories)/3
plot(SA, FY, 'LineWidth', 1)
elseif i <= length(subdirectories)/3*2
plot(SA, FY, '--','LineWidth', 1)
else
plot(SA, FY, '-.','LineWidth', 1)
end
hold on
end
legend(subdirectoryNames{:})
title("Similarities, n=",n)
xlabel("Slip Angle")
ylabel("FY")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 KiB