There are several ways to do this. One way to do this is to get all the children of the root object (represented in previous versions by handle 0 ):
figHandles = get(groot, 'Children'); % Since version R2014b figHandles = get(0, 'Children'); % Earlier versions
Or you can use the findobj function:
figHandles = findobj('Type', 'figure');
If any shape has hidden handles , you can use the findall function findall :
figHandles = findall(groot, 'Type', 'figure'); % Since version R2014b figHandles = findall(0, 'Type', 'figure'); % Earlier versions
gnovice Dec 27 '10 at 17:51 2010-12-27 17:51
source share