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 Comments

the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command

Sign in to comment.

 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

More Answers (1)

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

3 Comments

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

Sign in to comment.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!