Skip to content

ode23

ode · scripts/ode/ode23.m

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

Solve the initial value problem y' = fcn (t, y), y(tspan(1)) = y0 with an adaptive third-order Bogacki-Shampine Runge-Kutta pair. It is cheaper per step than ode45 and suited to crude tolerances and mildly stiff problems.

Arguments, options and outputs are as for ode45; the default Refine is 1, so one point is returned per step.