Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
date on x axis feather plot

Subject: date on x axis feather plot

From: Bettaiyya

Date: 1 Jun, 2010 15:06:19

Message: 1 of 3

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

Subject: date on x axis feather plot

From: Steven Lord

Date: 1 Jun, 2010 15:17:49

Message: 2 of 3


"Bettaiyya " <ng50@msstate.edu> wrote in message
news:hu37lb$pe6$1@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@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

Subject: date on x axis feather plot

From: Bettaiyya

Date: 1 Jun, 2010 15:25:21

Message: 3 of 3

"Steven Lord" <slord@mathworks.com> wrote in message <hu38ad$b8f$1@fred.mathworks.com>...
>
> "Bettaiyya " <ng50@msstate.edu> wrote in message
> news:hu37lb$pe6$1@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@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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us