keep

KEEP is complementary to the "clear" command: it keeps the supplied variables and deletes the rest.

Download
Download

You are now following this Submission

Editor's Note: This file was a File Exchange Pick of the Week.

Cite As

David Yang (2026). keep (https://nl.mathworks.com/matlabcentral/fileexchange/181-keep), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: keep2, KEEP3, keepfield, Keep4

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Download