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')

추가 답변 (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