Figure count
125 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Mary
2023 年 3 月 10 日
編集済み: Steven Lord
2023 年 3 月 10 日
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.
採用された回答
Sean de Wolski
2011 年 12 月 21 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!