FUNCTION REFERENCE
optimget
Read one option from an optimization options structure.
Read one option from an optimization options structure.
Syntax
value = optimget(options, 'Name')Syntax
value = optimget(options, 'Name', default)Syntax
value = optimget(options, 'Name', defaults, 'fast')Returns the option if it is set and nonempty, else default ([] when omitted).
Name matches a field in any case, or a unique prefix of an optimset option.
With 'fast', defaults is a structure and an unset option reads defaults.Name.
Example
optimget(optimset('TolX', 1e-8), 'tolx') % 1.0000e-08Example
optimget(optimset(), 'MaxIter', 200) % 200Example
optimget(struct('Display', []), 'Display', struct('Display', 'off'), 'fast') % 'off'Differences from MATLAB: an unrecognized name returns default instead of an
error.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.