How would I open multiple figures from one script.

2.033 Ansichten (letzte 30 Tage)
Giuseppe
Giuseppe am 20 Mär. 2014
Kommentiert: Megh DESHPANDE am 10 Nov. 2022
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 Kommentare
Chirag GAUR
Chirag GAUR am 4 Mai 2020
Bearbeitet: Chirag GAUR am 4 Mai 2020
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Yoav Romach
Yoav Romach am 20 Mär. 2014
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

Weitere Antworten (1)

Mischa Kim
Mischa Kim am 20 Mär. 2014
Correct, use figure just before each of the individual plot commands.
  3 Kommentare
ron shilling
ron shilling am 24 Feb. 2016
Awesome, thanks for making it so clear, worked great!!!
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco am 26 Apr. 2021
Thank you Mischa, it worked for me too!
Best!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by