Plot 3 lines using plotyy
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Using plotyy. I want to plot 2 lines on the left y axis and 1 line on the right y axis. I tried something like this but it didn't work. Y and Y2 should be on the left y axis
x =SZA15_Sort(:,1);
y =SZA15_Sort(:,9);
y1=SZA15_Sort(:,5);
y2 =SZA15_Sort(:,11);
[ax h1 h2]=plotyy(x,y,x,y1);
hold(ax(1))
plot(ax(1),x,y2)
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Two y-axis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!