closing a specified figure (if exist)
Afficher commentaires plus anciens
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
Réponse acceptée
Plus de réponses (2)
Paulo Silva
le 6 Sep 2011
close(findall(0,'type','figure','name','flashing'))
1 commentaire
mohammad
le 6 Sep 2011
Zoltan Gal
le 13 Avr 2019
0 votes
If the index of figure is 5, then
close(findobj('type','figure','number',5))
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!