Prev: question on using fft2 to calculate diffraction pattern
Next: Trim figure whitespace around axes
From: Oleg Komarov on 9 Feb 2010 19:15 "Bastian " <bastianschmidt(a)trentu.removethistext.ca> wrote in message <hksj9a$36m$1(a)fred.mathworks.com>... > "ade77 " <ade100a(a)gmail.com> wrote in message <hksfb4$iq2$1(a)fred.mathworks.com>... > > "Bastian " <bastianschmidt(a)trentu.removethistext.ca> wrote in message <hkseev$lb1$1(a)fred.mathworks.com>... > > > "Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <hksb9p$pui$1(a)fred.mathworks.com>... > > > > "Bastian " <bastianschmidt(a)trentu.removethistext.ca> wrote in message <hksa6l$gbf$1(a)fred.mathworks.com>... > > > > > I would like to save timeseries objects to a file and then subsequently load them back into the workspace as timeseries. I am trying to do this to avoid having to recreate the timeseries each time I want to use them. Can this be done? > > > > > > > > help save > > > > > > > > Oleg > > > > > > I wish it was that simlpe. I am talking about a MATLAB timeseries object not just any old variable in the workspace (check it out: help timeseries). Any other ideas? > > > > It is basically the same concept. > > If your timeseries object is named 'my_ts'. > > save('myfile','my_ts'); > > this will save the timeseries object 'my_ts' inside myfile.mat in the default directory. > > Hence, > > save('myfile','my_ts'); > > load myfile % will bring back your timeseries 'my_ts', in the workspace > > Thanks ade77. That works. I appreciate you patiently pointing out the obvious need for putting the single quotes around the timeseries name... I read the help on "save" (as suggested by Oleg) but for some reason I missed this obvious fact. "I am always thrown off by how MATLAB requires strings for arguments for some functions but not others. " I do completely agree with you. Oleg
First
|
Prev
|
Pages: 1 2 Prev: question on using fft2 to calculate diffraction pattern Next: Trim figure whitespace around axes |