Figure count
125 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Paul Kelly
le 21 Déc 2011
Modifié(e) : Steven Lord
le 10 Mar 2023
Is there a way of counting the number of figure windows currently open? I am trying to clear a set of figure windows without closing them.
1 commentaire
Mary
le 10 Mar 2023
Modifié(e) : Steven Lord
le 10 Mar 2023
Yes, you can use the 'numel' and 'findall' functions in MATLAB [SL: removed URL unrelated to question] to count the number of open figure windows.
Réponse acceptée
Sean de Wolski
le 21 Déc 2011
h = findobj('type','figure');
n = length(h);
And you can set the properties of all three at once using their handles - stored in h.
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks 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!