for mrkr=1:6
Tremor_functions.Timestamp(markers,mrkr,Fe)
for muscle=1:4
Tremor_functions.signal_processing(Debut,Fin,muscle,signal,Fe,mrkr,t);
function signal_processing(Debut,Fin,muscle,signal,Fe,mrkr,t)
cellmuscle = {'Fl-Pr','Ex-Su','Bic','Tri'};
Muscle_Tache=strcat('Tache',num2str(mrkr),'Muscle',num2str(muscle));
Muscle_Tache=figure('Name',Muscle_Tache,'Position',[0 0 600 600]);
movegui(Muscle_Tache,'northwest');
subplot(2,1,1)
plot(t,EMG_filt,'r')
title(cellmuscle(muscle));
xlabel('Temps (s)')
ylabel('EMG (mV)')
subplot(2,1,2)
plot(f_DSP,EMG_filt_DSP,'b')
xlim([0 50])
title(cellmuscle(muscle));
xlabel('Fréquence (Hz)')
ylabel('DSP (mv2/Hz)')
Muscle_Task=strcat('Muscle',num2str(mrkr),'Task',num2str(muscle),'.bmp');
saveas(Muscle_Tache,Muscle_Task);
2 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/680633-change-name-of-subplot-into-2-for#comment_1186248
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/680633-change-name-of-subplot-into-2-for#comment_1186248
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/680633-change-name-of-subplot-into-2-for#comment_1186283
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/680633-change-name-of-subplot-into-2-for#comment_1186283
Sign in to comment.