How can i clear all the variables in the workspace ?

3 vues (au cours des 30 derniers jours)
Sébastien
Sébastien le 15 Nov 2013
Commenté : Sébastien le 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.

Réponse acceptée

Matt J
Matt J le 15 Nov 2013
Modifié(e) : Matt J le 15 Nov 2013
evalin('base','clear variables')

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by