Deleting a certain base variable, from a function

2 Ansichten (letzte 30 Tage)
Chris
Chris am 23 Apr. 2014
Beantwortet: Walter Roberson am 23 Apr. 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!

Antworten (1)

Walter Roberson
Walter Roberson am 23 Apr. 2014
evalin('base', 'clear x');

Kategorien

Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by