From: mat001 on 24 Jun 2010 08:15 force_Along_Y = force(50,1:end); % from middle cut save('Data/force.mat', 'force_Along_Y','-append','-ascii'); I want to save this data in each iteration. SO creating a mat file in this way the above result will save in column wise. At time t0 3 4 5 6 ====================== t1 4 6 7 8 so in force.mat file to t1 3 4 4 6 5 7 6 8 so on.............................. ====================== Please help me how to append in such a way.
From: dpb on 24 Jun 2010 08:40 mat001 wrote: .... > Please help me how to append in such a way. .... Can't be done by appending to a sequential file. Either go ahead a write the file, then read it and reshape it or, probably better, save the results in memory (preallocate an array and fill in instead of dynamically allocating for efficiency) and then write that array to file when done. --
|
Pages: 1 Prev: Plotting on a circle Next: Extract set of values from variable file my_data.mat |