Clear All But

Clear the workspace while keeping some of your variables.

您现在正在关注此提交

Clear All But is an alternative version of David Yang's KEEP that I didn't know when doing this one.

The workspace is cleared as if the 'clear all' command was used but it is possible to keep some of your most beloved variables.

引用格式

Roland Pfister (2026). Clear All But (https://ww2.mathworks.cn/matlabcentral/fileexchange/25339-clear-all-but), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: keep

类别

Help CenterMATLAB Answers 中查找有关 Variables 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

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