Get handles of all (figure) objects
harr = CHILDINFO displays a tree of active handles in your command window. All found handles are returned in harr. Indices in harr are as displayed in the command window.
Output example:
>> harr = childinfo;
[00001] root
[00002] figure (Figure 1)
[00003] axes
[00004] line
[00005] axes
[00006] line
[00007] line
[00008] figure (Figure 2)
[00009] axes
[00010] rectangle
>> numel(harr)
ans =
10
>>
Cite As
Marc (2024). Get handles of all (figure) objects (https://www.mathworks.com/matlabcentral/fileexchange/47411-get-handles-of-all-figure-objects), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Graphics Objects >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.