Overwrote "clear" function

9 次查看(过去 30 天)
Andrew
Andrew 2012-4-14
I accidentally overwrote the clear command in matlab mobile and now cannot clear that variable or any other ones for that matter. Anybody know how I can clear variables on matlab mobile without using the clear command?

采纳的回答

Jan
Jan 2012-4-14
builtin('clear', 'clear')

更多回答(3 个)

Wayne King
Wayne King 2012-4-14
Does clearvars works?
clearvars X* %clear all variables starting with X
  1 个评论
Andrew
Andrew 2012-4-14
What would be the exact syntax, I'm new with Matlab.
I typed:
clearvars clear
and the result was:
Index exceeds matrix dimensions.
Error in clearvars (line 93)
evalin('caller', clearExpr);

请先登录,再进行评论。


Daniel Shub
Daniel Shub 2012-4-15
There is a good blog post by Loren on this: http://blogs.mathworks.com/loren/2011/01/27/a-clear-conundrum/

SOWMYA YANDAPALLI
I had overwritten cheby1 function. Can someone help me how to retrieve the original cheby1 function. Thanks in advance.

社区

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by