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

The following Matlab project contains the source code and Matlab examples used for 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' );

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
hasarg.m 189
license.txt 1318

SocialTags: