MATLAB Answers

How would I open multiple figures from one script.

조회 수: 8,348(최근 30일)
Giuseppe 2014년 3월 20일
댓글: Giuseppe Degan Di Dieco 2021년 4월 26일
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?
  댓글 수: 2
Chirag GAUR
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일
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일
Correct, use figure just before each of the individual plot commands.
  댓글 수: 3
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco 2021년 4월 26일
Thank you Mischa, it worked for me too!

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



Community Treasure Hunt

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

Start Hunting!

Translated by