From: Rhys on
I want to run the same programme, saving data to a .mat file without overwriting previous runs.
Is there an easy way to check if a previous run created the savedatafile.mat, if not create it, if it does then load it to append the already existing data?
thanks
From: Pekka Kumpulainen on
"Rhys " <rhyswork**ANTISPAM**@yahoo.co.uk> wrote in message <hmqphf$l84$1(a)fred.mathworks.com>...
> I want to run the same programme, saving data to a .mat file without overwriting previous runs.
> Is there an easy way to check if a previous run created the savedatafile.mat, if not create it, if it does then load it to append the already existing data?
> thanks

doc exist

If you only add new variables and don't modify the existing ones you can use
save(...,'-append')
From: Rhys on
"Pekka Kumpulainen" <pekka.nospam.kumpulainen(a)tut.please.fi> wrote in message <hmqqh9$neg$1(a)fred.mathworks.com>...
> "Rhys " <rhyswork**ANTISPAM**@yahoo.co.uk> wrote in message <hmqphf$l84$1(a)fred.mathworks.com>...
> > I want to run the same programme, saving data to a .mat file without overwriting previous runs.
> > Is there an easy way to check if a previous run created the savedatafile.mat, if not create it, if it does then load it to append the already existing data?
> > thanks
>
> doc exist
>
> If you only add new variables and don't modify the existing ones you can use
> save(...,'-append')

Thanks
Ive spent an hour on google and in help without finding doc exist
Sorry for needing the basic help!
But very valued anyway,
cheers.