Deleting a certain base variable, from a function

2 visualizaciones (últimos 30 días)
Chris
Chris el 23 de Abr. de 2014
Respondida: Walter Roberson el 23 de Abr. de 2014
I'm writing a program with user inputs, split into sub functions, I want to be able to redo a certain part of the program, without running the whole program again.
At the start of the sub function I'd like to delete the previous set variable, which is a matrix array. But clear x, clearvars x doesn't work for me :(
Any ideas?
Thanks in advance!

Respuestas (1)

Walter Roberson
Walter Roberson el 23 de Abr. de 2014
evalin('base', 'clear x');

Categorías

Más información sobre Debugging and Analysis 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