how to remove all variables in the workspace
127 ビュー (過去 30 日間)
表示 古いコメント
Hi, I try to remove/clear all the variables in the work space. But not typing clear on the command window. I try to add clear at the beginning of the my code. but it doesnt work. is there any way to add clear or any other way to clear workspace when i run mycode
0 件のコメント
回答 (2 件)
Image Analyst
2013 年 9 月 3 日
編集済み: Image Analyst
2013 年 9 月 3 日
Try "clearvars" or "clear all" as a line in your script. Do not do this in a function that takes input arguments or else you will blow them away!!!
0 件のコメント
参考
カテゴリ
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!