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.
Roland Pfister (2021). Clear All But (https://www.mathworks.com/matlabcentral/fileexchange/25339-clear-all-but), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: keep
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!