Overwrote "clear" function

8 ビュー (過去 30 日間)
Andrew
Andrew 2012 年 4 月 14 日
回答済み: SOWMYA YANDAPALLI 2018 年 4 月 2 日
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
SOWMYA YANDAPALLI 2018 年 4 月 2 日
I had overwritten cheby1 function. Can someone help me how to retrieve the original cheby1 function. Thanks in advance.

コミュニティ

カテゴリ

Help Center および File ExchangeDevelop 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