You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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. (2026). figurememory(h) (https://www.mathworks.com/matlabcentral/fileexchange/63574-figurememory-h), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Display ws variables size in KB, MB or GB
General Information
- Version 1.1.0.0 (3.08 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
