Multiple plots with time series object
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone I am trying to plot two different time series objects in the same plot. The object have different units, so I tough using a 'plotyy' command but, it gives me an error because there are not enough arguments. The time index of the objects is similar i,e. in the same day, but they are from different data. If anybody knows how to plot two different time series object with two y axis, please tell me.
Thanks
0 Kommentare
Antworten (1)
Walter Roberson
am 22 Mai 2011
[ax, h1, h2] = plotyy(x1, y1, x2, y2);
datetick(ax[1], 'y', 'HH:MM', 'keeplimits');
datetick(ax[2], 'y', 'HH:MM', 'keeplimits');
Siehe auch
Kategorien
Mehr zu Two y-axis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!