clearnot

バージョン 1.0.0.0 (1.43 KB) 作成者: Andrew Bliss
CLEARNOT clears all variables except the input variables
ダウンロード: 274
更新 2013/1/9

ライセンスの表示

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 AnswersWorkspace 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