How can i clear all the variables in the workspace ?

3 次查看(过去 30 天)
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.

采纳的回答

Matt J
Matt J 2013-11-15
编辑:Matt J 2013-11-15
evalin('base','clear variables')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by