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

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

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);

댓글을 달려면 로그인하십시오.

 채택된 답변

Carlos
Carlos 2013년 4월 23일
Use figure command
plot(a);
figure;plot(b,'r');

댓글 수: 6

This is the right solution for adding multiple figures in MATLAB. Thanks Mr. Carlos.
Thanks a lot .it works correctly.can apply
This is working but the second plot opening under Figure 3 name ?, rather than into Figure 2
I have the same issue Aniket

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

질문:

2013년 4월 23일

답변:

2024년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by