How do i clear all except one variable?

652 views (last 30 days)
I want to clear all variables except one
entering all variable to be cleared is a lengthy process, has many variables and function

Accepted Answer

Walter Roberson
Walter Roberson on 18 Dec 2018
clearvars -except NAME

More Answers (0)

Community Treasure Hunt

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

Start Hunting!