closing a specified figure (if exist)
26 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
0 Commenti
Risposta accettata
Più risposte (2)
Zoltan Gal
il 13 Apr 2019
If the index of figure is 5, then
close(findobj('type','figure','number',5))
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!