hasarg

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

Vous suivez désormais cette soumission

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

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

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

Citation pour cette source

Ivar Eskerud Smith (2026). hasarg (https://fr.mathworks.com/matlabcentral/fileexchange/35416-hasarg), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur Argument Definitions dans Help Center et MATLAB Answers

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