How would I open multiple figures from one script.

1.942 visualizaciones (últimos 30 días)
Giuseppe el 20 de Mzo. de 2014
Comentada: Megh DESHPANDE el 10 de Nov. de 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 comentarios
Chirag GAUR
Chirag GAUR el 4 de Mayo de 2020
Editada: Chirag GAUR el 4 de Mayo de 2020
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command

Iniciar sesión para comentar.

Respuesta aceptada

Yoav Romach
Yoav Romach el 20 de Mzo. de 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

Más respuestas (1)

Mischa Kim
Mischa Kim el 20 de Mzo. de 2014
Correct, use figure just before each of the individual plot commands.
  3 comentarios
ron shilling
ron shilling el 24 de Feb. de 2016
Awesome, thanks for making it so clear, worked great!!!
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco el 26 de Abr. de 2021
Thank you Mischa, it worked for me too!

Iniciar sesión para comentar.


Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.



Community Treasure Hunt

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

Start Hunting!

Translated by