how to display two graphs in separate figure windows using plot command?

486 ビュー (過去 30 日間)
Harish Balaga
Harish Balaga 2013 年 4 月 23 日
回答済み: Shivansh 2024 年 10 月 22 日
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 件のコメント
William Clarke
William Clarke 2020 年 2 月 28 日
編集済み: William Clarke 2020 年 2 月 28 日
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
my digit 2023 年 8 月 30 日
thank you

サインインしてコメントする。

採用された回答

Carlos
Carlos 2013 年 4 月 23 日
Use figure command
plot(a);
figure;plot(b,'r');
  6 件のコメント
Aniket Kumar
Aniket Kumar 2020 年 9 月 20 日
This is working but the second plot opening under Figure 3 name ?, rather than into Figure 2
Jake Dolezal
Jake Dolezal 2022 年 10 月 12 日
I have the same issue Aniket

サインインしてコメントする。

その他の回答 (1 件)

Shivansh
Shivansh 2024 年 10 月 22 日
plot(a);
figure;plot(b,'r');

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by