value = optimget(options, name)
value = optimget(options, name, default)
| Parameter | Description |
|---|---|
| options | structure or solver options object. |
| name | option name. |
| default | fallback value. |
| Parameter | Description |
|---|---|
| value | option value or default. |
optimget retrieves a named option, using a default when the option is absent or empty.
opts = optimset('MaxIter', 200);
maxiter = optimget(opts, 'MaxIter', 100)
| Version | Description |
|---|---|
| 2.0.0 | initial version |