how to remove all variables in the workspace
39 次查看(过去 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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!