From: mat001 on 7 Jun 2010 09:17 Hello How to append data in mat file I use such line to get data but its not appending. save('Data/test.mat', 'test' ) Thanks
From: dpb on 7 Jun 2010 09:19 mat001 wrote: > Hello > > How to append data in mat file > > I use such line to get data but its not appending. > > save('Data/test.mat', 'test' ) doc save % note the -APPEND optional argument (and limitations) --
From: mat001 on 7 Jun 2010 09:24 I solved the problem
From: Steven Lord on 7 Jun 2010 09:25 "mat001 " <priya.biomath(a)yahoo.co.in> wrote in message news:huirgg$2ad$1(a)fred.mathworks.com... > Hello > > How to append data in mat file > > I use such line to get data but its not appending. > > save('Data/test.mat', 'test' ) If you're looking to add a new variable to an existing file then use the -append flag. If you're looking to add new rows/columns/etc. to a variable that's already present in the file, you can't do that directly; you will need to LOAD in the variable, add rows/columns/etc. to it in the workspace, then SAVE it (using the -append flag if there are other variables in the file that you don't want overwritten) back to the existing file. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
Pages: 1 Prev: Matlab code for hybrid of SA/GA Next: How to delete a string line from the cell array |