keep

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

Vous suivez désormais cette soumission

Note de l’éditeur : 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.

Citation pour cette source

David Yang (2026). keep (https://fr.mathworks.com/matlabcentral/fileexchange/181-keep), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : keep2, KEEP3, keepfield, Keep4, Clear All But

Add the first tag.

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0