Figure count

125 次查看(过去 30 天)
Paul Kelly
Paul Kelly 2011-12-21
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
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
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 个评论
Chuck Hayden
Chuck Hayden 2022-3-16
thanks !
the cyclist
the cyclist 2022-5-3
This was handy for me, too, 11 years after it was answered. :-)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by