Returns an approximate number of bytes of memory used by a figure (or other graphics object) and its descendants
Basically provides the equivalent of whos for graphics objects. Useful if you have a figure that is consuming a lot
of memory. Operates by finding all descendants of the graphics object and summing up the bytes consumed by each of the major data entries (XData, YData, ... AlphaData, RData, ThetaData).
Inspired by wanting to add the functionality to wssize
Cite As
Dan K. (2024). figurememory(h) (https://www.mathworks.com/matlabcentral/fileexchange/63574-figurememory-h), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Display ws variables size in KB, MB or GB
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.