filename=uigetfile;
load(filename);
ConvDataCell=struct2cell(ConvertedData);
DataCell=struct2cell(ConvDataCell{5,1});
MeasuredData=DataCell{2,1};

%%Fz
structFz=MeasuredData(1,3);
cellFz=struct2cell(structFz);
FzData=-1*(cellFz{2,1});

%%Fy
structFy=MeasuredData(1,4);
cellFy=struct2cell(structFy);
FyData=-1*(cellFy{2,1});

%%Fx
structFx=MeasuredData(1,5);
cellFx=struct2cell(structFx);
FxData=cellFx{2,1};

dt=0.00001;
Tend=length(FzData);
t=[0:dt:Tend*dt-dt]';

subplot(3,1,1);   
plot(t,FzData);
title('F_{z}','Color','r','FontSize',20);
xlabel('Zeit_{[s]}','FontSize',20);
ylabel('Kraft_{[N]}','FontSize',20);

subplot(3,1,2);
plot(t,FyData);
title('F_{y}','Color','r','FontSize',20);
xlabel('Zeit_{[s]}','FontSize',20);
ylabel('Kraft_{[N]}','FontSize',20);

subplot(3,1,3);
plot(t,FxData);
title('F_{x}','Color','r','FontSize',20);
xlabel('Zeit_{[s]}','FontSize',20);
ylabel('Kraft_{[N]}','FontSize',20);

fpath='C:\Users\Kursad\Desktop\Messdaten Kursad\mat dateien\plots';
filename=[filename '.png'];
saveas(gcf,fullfile(fpath,filename));

%minValue = 600; % Or whatever you want.
%maxValue = 1000; % Or whatever you want.
%indexesInRange = data > minValue & data < maxValue;
%subVector = data(indexesInRange);

