hasarg
Version 1.0.0.0 (1,07 ko) par
Ivar Eskerud Smith
Check if a specific value/argument pair exists in varargin/cellstring
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 (2024). hasarg (https://www.mathworks.com/matlabcentral/fileexchange/35416-hasarg), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Créé avec
R2011b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Argument Definitions dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |