MATLAB Answers

Giuseppe
7

How would I open multiple figures from one script.

Giuseppe
さんによって質問されました 2014 年 3 月 20 日
最新アクティビティ Adarsh Vasa さんによって コメントされました 2019 年 3 月 20 日
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?

  1 件のコメント

the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)

サインイン to comment.

タグ

製品

2 件の回答

Answer by Yoav Romach on 20 Mar 2014
 Accepted Answer

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

  2 件のコメント

サインイン to comment.


Mischa Kim
Answer by Mischa Kim
on 20 Mar 2014

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

  2 件のコメント

thanks for the further clarification
Awesome, thanks for making it so clear, worked great!!!

サインイン to comment.



Translated by