Prev: question on using fft2 to calculate diffraction pattern
Next: Trim figure whitespace around axes
From: Bastian on 9 Feb 2010 13:40 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?
From: Oleg Komarov on 9 Feb 2010 13:59 "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
From: Bastian on 9 Feb 2010 14:53 "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?
From: ade77 on 9 Feb 2010 15:08 "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
From: Bastian on 9 Feb 2010 16:15 "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.
|
Next
|
Last
Pages: 1 2 Prev: question on using fft2 to calculate diffraction pattern Next: Trim figure whitespace around axes |