keep

KEEP is complementary to the "clear" command: it keeps the supplied variables and deletes the rest.

您现在正在关注此提交

编者注: This file was a File Exchange Pick of the Week.

KEEP is complementary to the "clear" command: instead of clearing the supplied variables, it keeps them and deletes the rest.

For example, the command " keep x y " clears all variables from the workspace except x and y.

引用格式

David Yang (2026). keep (https://ww2.mathworks.cn/matlabcentral/fileexchange/181-keep), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: keep2, KEEP3, keepfield, Keep4, Clear All But

类别

Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT Files 的更多信息

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

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