image thumbnail


version (1.41 KB) by Siyi Deng
Retains variables specified in input but clears all others.


Updated 07 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 (2022). keep5 (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!