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.
David Yang (2021). keep (https://www.mathworks.com/matlabcentral/fileexchange/181-keep), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!