fabien van mook

all packages "fvm-*"

package "fvm-optionmanip"

function file "optionsplit.m"

Function [copt,errmsg] = optionsplit(sopt,fopt)
         [ccopt,errmsg] = optionsplit(csopt,fopt)

splits the options in an option list, input as a string
sopt, into key-value pairs, output as a row cell-array
of strings, copt.

If the first input argument contains a cell-array of
strings, csopt, the output will be a cell-array of
cell-arrays of strings, ccopt.

The second input argument is optional.

The second output argument contains error messages as a
two-column cell-array: the message string errmsg{ierr,2}
relates to element errmsg{ierr,1} in the input. 

When the second output argument is not requested, the
error messages appear as ordinary text on screen, and not
as errors that halt the function!!!

See the help text of m-file optioninfo.m for further
explanation.

The function internally calls the following non-standard
m-files:
-- optionformat_default.m;
-- strsplitchar.m;
-- strcmpvh.m;
-- strjoinnonempty.m.


(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-optionmanip" under GNU GPLv3+