I want to clear all variables except one
entering all variable to be cleared is a lengthy process, has many variables and function

 채택된 답변

Walter Roberson
Walter Roberson 2018년 12월 18일

40 개 추천

clearvars -except NAME

댓글 수: 2

Thankyou it worked
clearvars -except X %deletes all variables except X in workspace

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

질문:

2018년 12월 18일

댓글:

2023년 8월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by