Overwrote "clear" function

9 visualizaciones (últimos 30 días)
Andrew
Andrew el 14 de Abr. de 2012
Respondida: SOWMYA YANDAPALLI el 2 de Abr. de 2018
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?

Respuesta aceptada

Jan
Jan el 14 de Abr. de 2012
builtin('clear', 'clear')

Más respuestas (3)

Wayne King
Wayne King el 14 de Abr. de 2012
Does clearvars works?
clearvars X* %clear all variables starting with X
  1 comentario
Andrew
Andrew el 14 de Abr. de 2012
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);

Iniciar sesión para comentar.


Daniel Shub
Daniel Shub el 15 de Abr. de 2012
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 el 2 de Abr. de 2018
I had overwritten cheby1 function. Can someone help me how to retrieve the original cheby1 function. Thanks in advance.

Comunidades de usuarios

Más respuestas en  Distance Learning Community

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by