Clear just base workspace

21 views (last 30 days)
Frank
Frank on 2 Jan 2012
Hi,
I am executing a function that fills the base workspace. How can I clear the base workspace / stack without clearing the function workspace?
Cheers, Frank.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Jan 2012
evalin('base','clear')

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!