keep5

Version 1.0.0.0 (1.41 KB) by Siyi Deng
Retains variables specified in input but clears all others.
836 Downloads
Updated 7 Jun 2007

View License

Yet another version of KEEP. However the implementation is different.

This one supports exactly same input argument as CLEAR; for example, wildcard *, 'global', '-regexp' all works.

Cite As

Siyi Deng (2026). keep5 (https://in.mathworks.com/matlabcentral/fileexchange/15214-keep5), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Variables in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0