figurememory(h)

Estimates memory usage of figures

You are now following this Submission

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

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Added histogram data

1.0.0.0