Figure count
123 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul Kelly
am 21 Dez. 2011
Bearbeitet: Steven Lord
am 10 Mär. 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 Kommentar
Mary
am 10 Mär. 2023
Bearbeitet: Steven Lord
am 10 Mär. 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.
Akzeptierte Antwort
Sean de Wolski
am 21 Dez. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!