%% Find Figures with Visible or Hidden Handles
% Create three figures. Set the HandleVisibility property of the last figure to 'off'.

f1 = figure;
f2 = figure;
f3 = figure('HandleVisibility','off');

% Display the number of visible or hidden handles in the graphics object hierarchy. Your result might be different from the result shown.

h1 = findall(groot);
disp(numel(h1))

% Find all visible or hidden figures.

h2 = findall(groot,'Type','figure')

% If you try to find the figures using the findobj function, MATLAB® returns only f1 and f2.

h3 = findobj('Type','figure')

% Copyright 2020 The MathWorks, Inc.