Prev: Saving images with transparent background with print command
Next: Read from all files in a directory with a MATLAB Script
From: manuela di benedetto on 26 Mar 2010 14:46 Hello!! I have a problem. Can you help me?? in a file Matlab i save some information in this way str=['save ',nomemstr,'_M_',num2str(mat),'_',num2str(mod),' mod mat b pl ] mat are 35!!! so i have 35 files next in a second file i recall this files with the command load momestr_M_?_1 but in this way i have to recall for 35 times. so i want to put a for cycle like this for i=1:35 load nomestre_M_i_1 end but it is wrong!! So, please help me!! (sorry for my English)
From: us on 26 Mar 2010 14:53
"manuela di benedetto" <patascotta(a)yahoo.it> wrote in message <hoivdb$efr$1(a)fred.mathworks.com>... > Hello!! I have a problem. Can you help me?? > in a file Matlab i save some information in this way > > str=['save ',nomemstr,'_M_',num2str(mat),'_',num2str(mod),' mod mat b pl ] > > mat are 35!!! so i have 35 files > > next in a second file i recall this files with the command > > load momestr_M_?_1 > > but in this way i have to recall for 35 times. so i want to put a for cycle like this > > for i=1:35 > load nomestre_M_i_1 > end > but it is wrong!! So, please help me!! > (sorry for my English) a hint: http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_process_a_sequence_of_files.3F us |