From: Bettaiyya on 1 Jun 2010 11:06 I am trying to put date on the x axis of feather plot: I tried it with this code: timeData = field.time(:); f = feather(field.value4(:),field.value5(:)) ts = timeseries(f,timeData); plot(ts); datetick('x',2,'keepticks'); And I am getting this error: ??? Error using ==> tssorttime at 19 Time and data are mismatched. Error in ==> timeseries.init at 272 [I,junk,data] = tssorttime(datenum(time),data,istimefirstprovided); Error in ==> timeseries.timeseries>timeseries.timeseries at 262 this = init(this,varargin{:}); Can u all please suggest me what i should do? Thanks
From: Steven Lord on 1 Jun 2010 11:17 "Bettaiyya " <ng50(a)msstate.edu> wrote in message news:hu37lb$pe6$1(a)fred.mathworks.com... >I am trying to put date on the x axis of feather plot: > > I tried it with this code: > > timeData = field.time(:); > > f = feather(field.value4(:),field.value5(:)) FEATHER returns a vector of line handles, NOT the data used to create the feather plot. > ts = timeseries(f,timeData); You should specify the actual data used to create the FEATHER plot, not the handle of that plot. *snip* -- 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
From: Bettaiyya on 1 Jun 2010 11:25 "Steven Lord" <slord(a)mathworks.com> wrote in message <hu38ad$b8f$1(a)fred.mathworks.com>... > > "Bettaiyya " <ng50(a)msstate.edu> wrote in message > news:hu37lb$pe6$1(a)fred.mathworks.com... > >I am trying to put date on the x axis of feather plot: > > > > I tried it with this code: > > > > timeData = field.time(:); > > > > f = feather(field.value4(:),field.value5(:)) > > FEATHER returns a vector of line handles, NOT the data used to create the > feather plot. > > > ts = timeseries(f,timeData); > > You should specify the actual data used to create the FEATHER plot, not the > handle of that plot. > > *snip* > > -- > 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 > Hi, Thanks for replying can you please tell me what code is needed to that, i have not been successful in getting the feather plot on the time series x axis. Thanks
|
Pages: 1 Prev: DIDO package Next: solving a system of COUPLED partial differential equations |