How to plot separate graphs?
206 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jimmy W
am 8 Okt. 2016
Kommentiert: Jurek
am 20 Mär. 2025
I have plotted a few graphs in different sections of my scripts, however when I run the m-file it will only show the last graph, I have to run it section by section in order to get all the graphs. How can I get all the graphs after I hit the run button? p.s. I am new to matlab so please explain with simple language, thank you for the help!
0 Kommentare
Akzeptierte Antwort
Star Strider
am 8 Okt. 2016
Specify each plot as a separate figure. I number mine, but that’s not absolutely necessary. See the documentation for the figure function for details.
Example:
figure(1)
plot(a,b)
grid
figure(2)
plot(c,d)
grid
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!