Figure count
    59 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    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
 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.
Respuesta aceptada
  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
Más respuestas (0)
Ver también
Categorías
				Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!