how to remove all variables in the workspace
조회 수: 8 (최근 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!