image thumbnail

flagParser

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

9 Downloads

Updated 23 Sep 2019

From GitHub

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 (2022). flagParser (https://github.com/YarmoM/flagParser), GitHub. Retrieved .

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!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.