closing a specified figure (if exist)
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mohammad
am 6 Sep. 2011
Beantwortet: Zoltan Gal
am 13 Apr. 2019
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Zoltan Gal
am 13 Apr. 2019
If the index of figure is 5, then
close(findobj('type','figure','number',5))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!