File Exchange

image thumbnail

flagParser

version 1.0.1 (1.64 KB) by Yarmo Mackenbach
Parse varargin for flags

1 Download

Updated 23 Sep 2019

From GitHub

View Version History

View license on GitHub

`[S args] = flagParser(args, flags)` parses the cell array args, checking for any flags provided in the cell array flags, then returns the args without the flags so they can be processed in inputParser and the struct S, containing all the booleans specifying the absence or presence of the flags in the args.

Please provide the flags without the leading dash.

Cite As

Yarmo Mackenbach (2021). flagParser (https://github.com/YarmoM/flagParser), GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!