psoptimget - Obtain values of pattern search options structure

Syntax

val = psoptimget(options,'name')
val = psoptimget(options,'name',default)

Description

val = psoptimget(options,'name') returns the value of the parameter name from the pattern search options structure options. psoptimget(options, 'name') returns an empty matrix [] if the value of name is not specified in options. It is only necessary to type enough leading characters of name to uniquely identify it. psoptimget ignores case in parameter names.

val = psoptimget(options,'name',default) returns the value of the parameter name from the pattern search options structure options, but returns default if the parameter is not specified (as in []) in options.

Example

val = psoptimget(opts,'TolX',1e-4);

returns val = 1e-4 if the TolX property is not specified in opts.

See Also

For more about these options, see Pattern Search Options.

psoptimset, patternsearch

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS