Figure count
    57 views (last 30 days)
  
       Show older comments
    
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 Comment
  Mary
 on 10 Mar 2023
				
      Edited: Steven Lord
    
      
 on 10 Mar 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.
Accepted Answer
  Sean de Wolski
      
      
 on 21 Dec 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 Comments
More Answers (0)
See Also
Categories
				Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



