clear except...
Version 1.0.0.0 (1.28 KB) by
Arnaud Laurent
clear workspace except prescribed variables
This function clear all variables in the workspace except the variables listed in the function argument.
Example: clearex('var1',var2') will clear all variables in the workspace except var1 and var2.
Note: wildcards (e.g. 'var*') can be used.
Cite As
Arnaud Laurent (2024). clear except... (https://www.mathworks.com/matlabcentral/fileexchange/19548-clear-except), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Workspace Variables and MAT-Files in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | updated to enable wildcards |