File Exchange

image thumbnail

Clear All But

version 1.0 (1.59 KB) by

Clear the workspace while keeping some of your variables.

1 Download


View License

Clear All But is an alternative version of David Yang's KEEP that I didn't know when doing this one.

The workspace is cleared as if the 'clear all' command was used but it is possible to keep some of your most beloved variables.

Comments and Ratings (1)

Jos (10584)

Jos (10584) (view profile)

Besides the existence of various KEEP functions, more recent versions of ML also know CLEARVARS, making this submission rather superfluous ...

MATLAB Release
MATLAB 7.8 (R2009a)

Inspired by: keep

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video