Skip to content

ode113

ode · scripts/ode/ode113.m

: [t, y] = ode113 (fcn, tspan, y0)
: [t, y] = ode113 (fcn, tspan, y0, opts)
: [t, y, te, ye, ie] = ode113 (…)
: sol = ode113 (…)

Solve the non-stiff initial value problem y' = fcn(t, y), y(tspan(1)) = y0, with a variable-order Adams-Bashforth-Moulton predictor-corrector (orders 1 to 12).

With two entries in tspan the solver chooses the output times (Refine extra points per step, default 1). With more entries the solution is returned at those times. A decreasing tspan integrates backwards. Options are set with odeset. One output is a structure with fields solver, extdata, x, y, stats and idata; event roots add xe, ye and ie.