plotyy with 4 outputs
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
bugatti79
am 8 Okt. 2013
Beantwortet: bugatti79
am 9 Okt. 2013
Folks,
How do I plot 4 outputs on one 2d plot but with one of the outputs on the 2nd y axis? The plotyy command requires 4 vectors to represent x1,y1 and x2,y2 but I would have x1,y1, x2,y2,x3,y3,x4,y4 with x1=x2=x3=x4
Thanks in advanced. B
0 Kommentare
Akzeptierte Antwort
David Sanchez
am 8 Okt. 2013
Try something like this:
plot(x1,y3,'m',x1,y4,'r')
hold on
plotyy(x1,y1,x1,y2)
hold off
0 Kommentare
Weitere Antworten (1)
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!