Functions | |
if (nargs==0) if(nargout | |
printf (" %s\n", opts{:}) | |
puts ("\n") | |
endif | elseif (nargs==1 &&ischar(varargin{1})) fcn |
catch | error ("no defaults for function `%s'", fcn) |
if (i > 0 &&strcmpi(opts{i}, key)) key | |
else | warning ("unrecognized option: %s", key) |
endif endif | old (key) |
elseif (rem(nargs, 2)&&isstruct(varargin{1})) retval | |
elseif (rem(nargs, 2)==0) retval | |
else | print_usage () |
endif endfunction | !assert (optimget(optimset('tolx', 1e-2), 'tOLx'), 1e-2)%!assert(isfield(optimset('tolFun' |
Variables | |
function | retval |
opts = __all_opts__ () | |
new = varargin{2} | |
fnames = fieldnames (old) | |
validation = ! isempty (opts) | |
for [val, key] |
endif endfunction !assert | ( | optimget(optimset('tolx', 1e-2), 'tOLx') | , | |
1e- | 2 | |||
) |
if | ( | i | , | |
0 && | strcmpiopts{i}, key | |||
) |
if | ( | nargs | = =0 |
) |
else print_usage | ( | ) |
printf | ( | " %s\n" | ) |
puts | ( | "\n" | ) |
fnames = fieldnames (old) |
new = varargin{2} |
opts = __all_opts__ () |
validation = ! isempty (opts) |