plotyy two variables one with two series
Ältere Kommentare anzeigen
Hi All, Please is it possible to use plotyy to plot two variables, temperature and speed, but for the speed coordinate I need to plot two series u and v. If it is possible, please how to do this.
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 27 Okt. 2013
Look at this example
t=0:0.1:10;
y=2*cos(t).^2
u=sin(t); % speed 1
v=cos(t) % speed 2
[ax,h1,h2]=plotyy(t,y,t,u)
line(t,v,'color',[1 1 0],'parent',ax(2));
Kategorien
Mehr zu Two y-axis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!