Close empty figures

Simple function, that closes empty figures.

You are now following this Submission

The clef() function checks for figures and closes them if they don't have children. Can be useful sometimes, if many figures get created and some of them stay empty.

Cite As

Zoltan (2026). Close empty figures (https://ch.mathworks.com/matlabcentral/fileexchange/34696-close-empty-figures), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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