From: mat001 on
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
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
I solved the problem
From: Steven Lord on

"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