PARSEOPT Parse options.
[ GOT, VAL ] = PARSEOPT( COPTDEF, VARARGIN ) parses the property/value pairs in VARARGIN, and adds the default options in the second column of COPTDEF. The first column of COPTDEF contains strings of the field names. Returns the got/val structs.