Borrar filtros
Borrar filtros

Figure count

125 visualizaciones (últimos 30 días)
Paul Kelly
Paul Kelly el 21 de Dic. de 2011
Editada: Steven Lord el 10 de Mzo. de 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 comentario
Mary
Mary el 10 de Mzo. de 2023
Editada: Steven Lord el 10 de Mzo. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 21 de Dic. de 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 comentarios
Chuck Hayden
Chuck Hayden el 16 de Mzo. de 2022
thanks !
the cyclist
the cyclist el 3 de Mayo de 2022
This was handy for me, too, 11 years after it was answered. :-)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by