How can i clear all the variables in the workspace ?

3 Ansichten (letzte 30 Tage)
Sébastien
Sébastien am 15 Nov. 2013
Kommentiert: Sébastien am 15 Nov. 2013
Hi,
I'm curently working on a project under Matlab. I use Simulink and GUIDE.
My problem is that I want to clear all the variables that are in the workspace by clicking on a GUI button. clear all doesn't work because the variables are not created in the same file and/or function.
How can I do to clear all the variables ?
Seb.

Akzeptierte Antwort

Matt J
Matt J am 15 Nov. 2013
Bearbeitet: Matt J am 15 Nov. 2013
evalin('base','clear variables')

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by