>> clear = 3

조회 수: 4 (최근 30일)
Kevin
Kevin 2016년 4월 12일
댓글: Kevin 2016년 4월 12일
Assume that I accidentally type the following command in MATLAB,
>> clear = 3
This will create a variable called "clear" in the base workspace. Now how do I clear this variable?
Assuming that I don't want to close MATLAB and start MATLAB again.

채택된 답변

Walter Roberson
Walter Roberson 2016년 4월 12일
builtin('clear','clear')
  댓글 수: 1
Kevin
Kevin 2016년 4월 12일
Very nice and clean solution.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Steven Lord
Steven Lord 2016년 4월 12일
There are a number of techniques suggested in this posting on Loren's blog.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by