You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
- Version 1.0.0.0 (1.51 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
