| MATLAB Function Reference | Search  Help Desk |
| odeget | Examples See Also |
Extract properties from options structure created with odeset
o = odeget(options,'name') o = odeget(options,'name',default)
o = odeget(options,'name')
extracts the value of the property specified by string 'name' from integrator options structure options, returning an empty matrix if the property value is not specified in options. It is only necessary to type the leading characters that uniquely identify the property name. Case is ignored for property names. The empty matrix [] is a valid options argument.
o = odeget(options,'name',default)
returns o = default if the named property is not specified in options.
Having constructed an ODE options structure,
options = odeset('RelTol',1e-4,'AbsTol',[1e-3 2e-3 3e-3]);
you can view these property settings with odeget:
odeget(options,'RelTol') ans =
1.0000e-04 odeget(options,'AbsTol') ans =
0.0010 0.0020 0.0030
odeset