How do i clear all except one variable?
578 ビュー (過去 30 日間)
古いコメントを表示
I want to clear all variables except one
entering all variable to be cleared is a lengthy process, has many variables and function
0 件のコメント
採用された回答
Walter Roberson
2018 年 12 月 18 日
clearvars -except NAME
2 件のコメント
Pedapudi Bharath Raja Bhoopal
2020 年 12 月 14 日
Thankyou it worked
clearvars -except X %deletes all variables except X in workspace
Matthew Creek
2023 年 8 月 24 日
Here are some links to related documentation:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!