how to display two graphs in separate figure windows using plot command?
Ältere Kommentare anzeigen
i use a matlab program for my project. There i want to produce two graphs at different instances. But the second graph replaces the 1st graph when that command is executed.. i want both to be displayed in separate window. I dont want both graphs in same window (using "subplot"). Is it possible in matlab?
2 Kommentare
William Clarke
am 28 Feb. 2020
Bearbeitet: William Clarke
am 28 Feb. 2020
So this applies to the Publish function aswell.
When you publish code using the publish tab it will put what ever is in the figure window when it is done executing the code, at the end of the document. this is annoying because you could have several plots you want to publish.
However if Place the line figure; after you are done plotting each graph then the following graph will be in a new window and they will all be included in the published document.
I.E.
plot(xa, ya);
figure;
plot(xb, yb);
figure;
plot(xc, yb);
my digit
am 30 Aug. 2023
thank you
Akzeptierte Antwort
Weitere Antworten (1)
Shivansh
am 22 Okt. 2024
0 Stimmen
plot(a);
figure;plot(b,'r');
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!