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 个评论
Austin Gee
2017-11-16
编辑:Austin Gee
2017-11-16
the coding format is
figure(1)
plot(x,y)
figure(2)
plot(x2,y2)
figure(3)
plot(x3,y3)
Chirag GAUR
2020-5-4
编辑:Chirag GAUR
2020-5-4
Thankyou Very Much...!! lml
For having multiple plots in single window you may go for 'subplot' command
Victoria Brazionyte
2022-10-26
wow
采纳的回答
更多回答(1 个)
Mischa Kim
2014-3-20
12 个投票
Correct, use figure just before each of the individual plot commands.
3 个评论
Giuseppe
2014-3-20
ron shilling
2016-2-24
Awesome, thanks for making it so clear, worked great!!!
Giuseppe Degan Di Dieco
2021-4-26
Thank you Mischa, it worked for me too!
Best!
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!