clearnot
版本 1.0.0.0 (1.4 KB) 作者:
Andrew Bliss
CLEARNOT clears all variables except the input variables
CLEARNOT A B clears all the variables in the calling workspace except A and B (or any variable that is input to CLEARNOT).
Useful for cleaning up a cluttered workspace when you want to preserve a few variables.
The functional form of CLEARNOT is also valid: CLEARNOT('A','B').
TODO: make it work with wildcards.
Example:
a=2;b=3;c=4;d=5;
clearnot a c
This clears B and D but preserves A and C in the workspace.
引用格式
Andrew Bliss (2024). clearnot (https://www.mathworks.com/matlabcentral/fileexchange/39776-clearnot), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R14
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |