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

0 个投票

builtin('clear','clear')

更多回答(1 个)

Steven Lord
Steven Lord 2016-4-12

0 个投票

There are a number of techniques suggested in this posting on Loren's blog.

类别

帮助中心File 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