cle

Clear all variables from memory EXCEPT the ones you specify (wildcards OK) (e.g, cle a* A*)

You are now following this Submission

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 (2026). cle (https://au.mathworks.com/matlabcentral/fileexchange/33548-cle), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0