hasarg
バージョン 1.0.0.0 (1.07 KB) 作成者:
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' );
引用
Ivar Eskerud Smith (2025). hasarg (https://www.mathworks.com/matlabcentral/fileexchange/35416-hasarg), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Argument Definitions についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |