Keep4

Keeps the listed variables in the calling workspace with a command format similar to "clear"

Sie verfolgen jetzt diese Einreichung

This is another version of Keep, which allows a user to specify what variables are kept in the workspace of the calling routine. "Keep" compliments "Clear".

This version has been extended to match the command format of the "clear" command for clearing variables. Thus wildcards and regular expressions are allowed. The version also supports the "global" key word and Keep will not touch global variables unless the "global" key word is used.

Examples of supported formats:
keep var1 var2
keep var*
keep -regexp expr1
keep global
keep global var1
keep global -regexp expr1

Zitieren als

Mirko Hrovat (2026). Keep4 (https://de.mathworks.com/matlabcentral/fileexchange/7129-keep4), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: keep, keep2, KEEP3

Kategorien

Mehr zu Variables finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0

Updated comments to improve code metrics.