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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Dez. 2018

40 Stimmen

clearvars -except NAME

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Control System Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by