exclude

Function excludes figures from being closed with 'close all.'

You are now following this Submission

Function first stores the closerequestfcn into appdata, then sets it to blank. When using 'close all', close or hitting the red box in the upper right occurs figure will remain open. This allows the user to keep figures around while generating others and using close all to rapidly get rid of the ones that are of no more interest.

To reset the closerequestfcn use include (useful for GUIs that have a close out sequence). Alternatively one can use delete or 'close all force' to close figures that have been excluded.

Cite As

Jeffrey (2026). exclude (https://se.mathworks.com/matlabcentral/fileexchange/24844-exclude), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Printing and Saving in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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