How would I open multiple figures from one script.

Hi I have 3 scripts which all produce a figure. They are all graphs. How would i put them all on one script and have all plots displayed as separate figures. I believe you have to use the figure() function?

댓글 수: 3

Austin Gee
Austin Gee 2017년 11월 16일
편집: Austin Gee 2017년 11월 16일
the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)
Chirag GAUR
Chirag GAUR 2020년 5월 4일
편집: Chirag GAUR 2020년 5월 4일
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command

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

 채택된 답변

Yoav Romach
Yoav Romach 2014년 3월 20일

18 개 추천

Hey Giuseppe, Yes, you need to call figure() in between. You can just call it without parameters and it'll work, or you can check the function page and see what options you can put in

추가 답변 (1개)

Mischa Kim
Mischa Kim 2014년 3월 20일

12 개 추천

Correct, use figure just before each of the individual plot commands.

댓글 수: 3

thanks for the further clarification
Awesome, thanks for making it so clear, worked great!!!
Thank you Mischa, it worked for me too!
Best!

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

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

태그

질문:

2014년 3월 20일

댓글:

2022년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by