MATLAB Function Reference Previous page   Next Page
optimget

Get optimization options structure parameter values

Syntax

Description

val = optimget(options,'param') returns the value of the specified parameter in the optimization options structure options. You need to type only enough leading characters to define the parameter name uniquely. Case is ignored for parameter names.

val = optimget(options,'param',default) returns default if the specified parameter is not defined in the optimization options structure options. Note that this form of the function is used primarily by other optimization functions.

Examples

This statement returns the value of the Display optimization options parameter in the structure called my_options.

This statement returns the value of the Display optimization options parameter in the structure called my_options (as in the previous example) except that if the Display parameter is not defined, it returns the value 'final'.

See Also
optimset, fminbnd, fminsearch, fzero, lsqnonneg


Previous page  openvar optimset Next page

© 1994-2005 The MathWorks, Inc.