How would I open multiple figures from one script.
Mostrar comentarios más antiguos
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
Austin Gee
el 16 de Nov. de 2017
Editada: Austin Gee
el 16 de Nov. de 2017
the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)
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
Victoria Brazionyte
el 26 de Oct. de 2022
wow
Respuesta aceptada
Más respuestas (1)
Mischa Kim
el 20 de Mzo. de 2014
12 votos
Correct, use figure just before each of the individual plot commands.
3 comentarios
Giuseppe
el 20 de Mzo. de 2014
ron shilling
el 24 de Feb. de 2016
Awesome, thanks for making it so clear, worked great!!!
Giuseppe Degan Di Dieco
el 26 de Abr. de 2021
Thank you Mischa, it worked for me too!
Best!
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!