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