| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Optimization Toolbox |
| Contents | Index |
| Learn more about Optimization Toolbox |
val = optimget(options,'param')
val = optimget(options,'param',default)
val = optimget(options,'param') returns the value of the specified option in the optimization options structure options. You need to type only enough leading characters to define the option name uniquely. Case is ignored for option names.
val = optimget(options,'param',default) returns default if the specified option is not defined in the optimization options structure options. Note that this form of the function is used primarily by other optimization functions.
This statement returns the value of the Display option in the structure called my_options.
val = optimget(my_options,'Display')
This statement returns the value of the Display option in the structure called my_options (as in the previous example) except that if the Display option is not defined, it returns the value 'final'.
optnew = optimget(my_options,'Display','final');

Learn how to use optimization to solve systems of equations, fit models to data, or optimize system performance.
Get free kit| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |