How would I open multiple figures from one script.
Afficher commentaires plus anciens
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 commentaires
Austin Gee
le 16 Nov 2017
Modifié(e) : Austin Gee
le 16 Nov 2017
the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)
Chirag GAUR
le 4 Mai 2020
Modifié(e) : Chirag GAUR
le 4 Mai 2020
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command
Victoria Brazionyte
le 26 Oct 2022
wow
Réponse acceptée
Plus de réponses (1)
Mischa Kim
le 20 Mar 2014
12 votes
Correct, use figure just before each of the individual plot commands.
3 commentaires
Giuseppe
le 20 Mar 2014
ron shilling
le 24 Fév 2016
Awesome, thanks for making it so clear, worked great!!!
Giuseppe Degan Di Dieco
le 26 Avr 2021
Thank you Mischa, it worked for me too!
Best!
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!