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 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