Skip to content

odeset

ode · scripts/ode/odeset.m

: opts = odeset ()
: opts = odeset (name1, value1, …)
: opts = odeset (old, name1, value1, …)
: opts = odeset (old, new)

Create or update an options structure for the ODE solvers.

The result always carries the full set of standard option fields; options that have not been set are empty. Names are case-insensitive and may be shortened to any unambiguous prefix. When structures are combined, empty values never replace values already present. Unknown names are an error.

Standard options: AbsTol, BDF, Events, InitialSlope, InitialStep, JConstant, JPattern, Jacobian, MStateDependence, Mass, MassSingular, MaxOrder, MaxStep, MinStep, MvPattern, NonNegative, NormControl, OutputFcn, OutputSel, Refine, RelTol, Stats, Vectorized (MATLAB R2026a field set, including MinStep).