File Exchange

image thumbnail

hasarg

version 1.0.0.0 (1.07 KB) by Ivar Eskerud Smith
Check if a specific value/argument pair exists in varargin/cellstring

1 Download

Updated 02 Mar 2012

View License

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

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

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

Cite As

Ivar Eskerud Smith (2021). hasarg (https://www.mathworks.com/matlabcentral/fileexchange/35416-hasarg), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!