How can i clear all the variables in the workspace ?

7 visualizaciones (últimos 30 días)
Sébastien
Sébastien el 15 de Nov. de 2013
Comentada: Sébastien el 15 de Nov. de 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.

Respuesta aceptada

Matt J
Matt J el 15 de Nov. de 2013
Editada: Matt J el 15 de Nov. de 2013
evalin('base','clear variables')

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by