From: Ken Kemal on
Hi

Does anyone know how to use plotyy with timeseries? on 2 seperate axes? or plot with 2 seperate axes for the timeseries object?

thanks,

-ken
From: Wayne King on
"Ken Kemal" <kk61(a)cornell.edu> wrote in message <hov9cs$o5m$1(a)fred.mathworks.com>...
> Hi
>
> Does anyone know how to use plotyy with timeseries? on 2 seperate axes? or plot with 2 seperate axes for the timeseries object?
>
> thanks,
>
> -ken

Hi Ken, one solution

b = timeseries(rand(100,1),1:100);
b1 = timeseries(10+rand(100,1),1:100);
plotyy(b.Time,b.Data,b.Time,b1.Data);

Wayne
From: Ken Kemal on
Thanks Wayne, it worked.

"Wayne King" <wmkingty(a)gmail.com> wrote in message <hovb1c$hp8$1(a)fred.mathworks.com>...
> "Ken Kemal" <kk61(a)cornell.edu> wrote in message <hov9cs$o5m$1(a)fred.mathworks.com>...
> > Hi
> >
> > Does anyone know how to use plotyy with timeseries? on 2 seperate axes? or plot with 2 seperate axes for the timeseries object?
> >
> > thanks,
> >
> > -ken
>
> Hi Ken, one solution
>
> b = timeseries(rand(100,1),1:100);
> b1 = timeseries(10+rand(100,1),1:100);
> plotyy(b.Time,b.Data,b.Time,b1.Data);
>
> Wayne