You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was a File Exchange Pick of the Week.
KEEP is complementary to the "clear" command: instead of clearing the supplied variables, it keeps them and deletes the rest.
For example, the command " keep x y " clears all variables from the workspace except x and y.
Cite As
David Yang (2026). keep (https://www.mathworks.com/matlabcentral/fileexchange/181-keep), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: keep2, KEEP3, keepfield, Keep4, Clear All But
General Information
- Version 1.0.0.0 (810 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
