Quantcast

Documentation Center

  • Trial Software
  • Product Updates

odeget

Ordinary differential equation options parameters

Syntax

o = odeget(options,'name')
o = odeget(options,'name',default)

Description

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.

o = odeget(options,'name',default) returns o = default if the named property is not specified in options.

The empty matrix [] is a valid options argument, and the syntax odeget([],'name',default) always returns default.

Examples

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

odeget([],'RelTol',1e-3)
ans =

   1.0000e-03

See Also

Was this topic helpful?