Documentation - Matlab API - MISC - VL_ARGPARSE

CONF = VL_ARGPARSE(CONF, ARGS) updates the structure CONF based on the specified parameter-value pairs ARGS={PAR1, VAL1, ... PARN, VALN}. The function produces an error if an unknown parameter name is passed in.

[CONF, ARGS] = VL_ARGPARSE(...) copies any unkown parameters to ARGS instead of producing an error.

Example

The function can be used to quickly parse a variable list of arguments passed to a MATLAB functions:

  conf = vl_argparse(conf, varargin)

See also: VL_OVERRIDE(), VL_HELP().