closing a specified figure (if exist)
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
mohammad
le 6 Sep 2011
Réponse apportée : Zoltan Gal
le 13 Avr 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 commentaires
Réponse acceptée
Plus de réponses (2)
Zoltan Gal
le 13 Avr 2019
If the index of figure is 5, then
close(findobj('type','figure','number',5))
0 commentaires
Voir également
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!