hasarg

Check if a specific value/argument pair exists in varargin/cellstring

Sie verfolgen jetzt diese Einreichung

Check if a specific value/argument pair exists in varargin/cellstring.

args= { 'option1', true, 'option2', [1 2 3] };

%returns true
exists = hasarg( args, 'option1' );

Zitieren als

Ivar Eskerud Smith (2026). hasarg (https://de.mathworks.com/matlabcentral/fileexchange/35416-hasarg), MATLAB Central File Exchange. Abgerufen .

Kategorien

Mehr zu Argument Definitions 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