image thumbnail

cle

version 1.0.0.0 (1.51 KB) by Sam Hallman
Clear all variables from memory EXCEPT the ones you specify (wildcards OK) (e.g, cle a* A*)

206 Downloads

Updated 31 Oct 2011

View License

CLE Clear all variables from memory EXCEPT the ones you specify

You may use wildcards (e.g., cle a*) just as with the builtin CLEAR.
Matching is case sensitive

Examples
cle sam % clear all variables EXCEPT the 'sam' variable
cle x y z % clear all variables EXCEPT for x, y, and z
cle a* b* % clear all variables EXCEPT those starting with a or b
cle('name') % function form is OK too

Cite As

Sam Hallman (2021). cle (https://www.mathworks.com/matlabcentral/fileexchange/33548-cle), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!