필터 지우기
필터 지우기

How to Clear all Variables of a Workspace Except for Those Explicitly Excluded?

조회 수: 60 (최근 30일)
How do I clear all variables of a workspace except for those that I explicitly mention not to be cleared?

채택된 답변

Jan
Jan 2017년 3월 15일
편집: Jan 2017년 3월 15일
clearvars -except keepVariables
I recommend to use functions. Then there is no need to clear workspace variables. For larger projects it is very useful, if the workspace is kept clean, instead of applying method to clean them manually.

추가 답변 (1개)

ES
ES 2017년 3월 15일

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by