MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Mahan Soltani
on 17 Dec 2012

This question is closed and may reopen in the future if edited.

i have this m file:

[numdata,txtdata]=xlsread(['subject_1.xls']); Ankle_saj_1=numdata(:,2); max_pf_1=min(Ankle_saj_1); max_df_1=max(Ankle_saj_1); save('Ankle_saj_var_1','max_pf_1','max_df_1') plot(Ankle_saj_1) saveas(gcf,'Ankle_saj_1.fig')

-this m file collect data (Ankle_saj_1 , max_pf_1 , max_df_1 and plot(Ankle_saj_1)) from subject_1.xls and show them and finally save it. now, i have 10 xls file (subject_1 subject_2 ,...,subject_10). i need this data for all xls file to compare them.(for example: show 10 plot in one window to see all). Joes said that i need structure and loop to show all of them.i'm amautor and dont know about this works. please help me,this is for CP persons.thanks. download m file

*No products are associated with this question.*

## 1 Comment

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/56811#comment_117707

duplicates http://www.mathworks.co.uk/matlabcentral/answers/56764-how-can-expand-a-m-file