Close all figures except those listed

Close all figures except those listed by the user.

您现在正在关注此提交

编者注: This file was selected as MATLAB Central Pick of the Week

Currently, if you have many figures open at once, but decide you only want to keep one or two of them, you have to manually close all the other figures. This function is a simple tool for keeping the figures you want and closing all the others. Also, called with no arguments, 'cab' is a convenient, three-letter replacement for 'close all'.

引用格式

Karl (2026). Close all figures except those listed (https://ww2.mathworks.cn/matlabcentral/fileexchange/24420-close-all-figures-except-those-listed), MATLAB Central File Exchange. 检索时间: .

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

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

1.0.0.0