Skip to content

ode23s

ode · scripts/ode/ode23s.m

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

Solve the stiff initial value problem M y' = fcn (t, y), y(tspan(1)) = y0 with a modified second-order Rosenbrock method.

The Jacobian is taken from the Jacobian option (a constant matrix or a function J (t, y)) or approximated by finite differences, in which case Vectorized lets all perturbed columns be evaluated in one call. The mass matrix M comes from the Mass option. Other arguments, options and outputs are as for ode45; the default Refine is 1.