Navigation

Operators and Keywords

Function List:

C++ API

: val = odeget (ode_opt, field)
: val = odeget (ode_opt, field, default)

Query the value of the property field in the ODE options structure ode_opt.

If called with two input arguments and the first input argument ode_opt is an ODE option structure and the second input argument field is a string specifying an option name, then return the option value val corresponding to field from ode_opt.

If called with an optional third input argument, and field is not set in the structure ode_opt, then return the default value default instead.

See also: odeset.

Demonstration 1

The following code

 ## Return the manually changed value RelTol of the ODE options
 ## structure A.  If RelTol wouldn't have been changed then an
 ## empty matrix value would have been returned.

 A = odeset ("RelTol", 1e-1, "AbsTol", 1e-2);
 odeget (A, "RelTol", [])

Produces the following output

ans =  0.10000

Package: octave