2 different y axis plot using timeseries ?

9 vues (au cours des 30 derniers jours)
karthik
karthik le 30 Mar 2013
I have a two different data of matrix 1014x1 and time vector 1x1014. The two different data must be plotted using two different y axes with X axis holding the time series from *11:51:20 to 12:08:11 *.
I tried using time series object. But I'm not getting 2 different Y axis. Instead y axis datas are getting plotted in same y axis.
Its is similar to plotyy function but I need x axis indicating from 11:51:20 to 12:08:11.
In other word i need to plot using plotyy function using time series.

Réponses (1)

Anand
Anand le 30 Mar 2013
If you're working with timeseries objects, this should be quite easy.
Suppose you're timeseries objects are tsData1 and tsData2, you can use the following:
figure;
plotyy(tsData1.Time,tsData1.Data,tsData2.Time,tsData2.Data);
  4 commentaires
karthik
karthik le 3 Avr 2013
no use ... junk values are coming in 'x' axis.
Sabarinathan Balasubramanian
Hi
I am trying to plot with two y-axis using time series.Can anyone help me with this?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Two y-axis dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by