Close all figures except those listed
Close all figures except those listed

Close all figures except those listed

Close all figures except those listed by the user.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Karl (2026). Close all figures except those listed (https://www.mathworks.com/matlabcentral/fileexchange/24420-close-all-figures-except-those-listed), 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.1.0

Fixed 'last' option so it actually closes the last figure opened, rather than the current figure.

Download
1.0.0

Download