plotting two different graphs
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
lowcalorie
il 13 Mag 2012
Commentato: Walter Roberson
il 14 Giu 2020
im using plot to graph one curve but now i need to plot a second curve on a different graph so how can i open 2 graphs from one script
0 Commenti
Risposta accettata
Srinivas
il 13 Mag 2012
help figure
is this what you want
4 Commenti
Walter Roberson
il 14 Giu 2020
Either use subplot like Image Analyst said, or use "hold on" after drawing the first graph so that the second graph goes into the same axes.
Più risposte (1)
Image Analyst
il 13 Mag 2012
Try subplot(). This will let you have two plots on the same figure so you can see them both at the same time and don't have to keep switching between figures.
subplot(1, 2, 1);
plot(1:30);
subplot(1, 2, 2);
plot(200:247);
0 Commenti
Vedere anche
Categorie
Scopri di più su Line Plots 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!