figurememory(h)

Version 1.1.0.0 (3.08 KB) by Dan K.
Estimates memory usage of figures
19 Downloads
Updated 20 Jul 2017

View License

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
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
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!
Version Published Release Notes
1.1.0.0

Added histogram data

1.0.0.0