How can i clear all the variables in the workspace ?

7 ビュー (過去 30 日間)
Sébastien
Sébastien 2013 年 11 月 15 日
コメント済み: Sébastien 2013 年 11 月 15 日
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')
  1 件のコメント
Sébastien
Sébastien 2013 年 11 月 15 日
Thanks a lot !
It works !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by