FUNCTION REFERENCE

ode23s

Solve stiff differential equations, low order (modified Rosenbrock 2(3)).

Solve stiff differential equations, low order (modified Rosenbrock 2(3)).

Syntax

[t, y] = ode23s(@f, tspan, y0)

Syntax

[t, y] = ode23s(@f, tspan, y0, odeset('Jacobian', @J, 'Mass', M))

Syntax

[t, y] = ode23s(@f, tspan, y0, options, p1, p2, ...)

Syntax

[t, y, te, ye, ie] = ode23s(@f, tspan, y0, odeset('Events', @eventFcn))

Syntax

sol = ode23s(@f, tspan, y0)

Modified Rosenbrock (2,3) pair of Shampine and Reichelt (1997), used as a W-method: each

step forms the Jacobian (numerical unless the Jacobian option is given), a finite-difference

df/dt and one LU factorization of M - h*d*J, d = 1/(2+sqrt(2)); the third stage gives the

error estimate and the solution has a quadratic continuous extension. The mass matrix must be

constant and nonsingular.

See odeset for event outputs and extra arguments after options.

Example

[t, y] = ode23s(@(t,y) -y, [0 1], 1); y(end)   % about 0.3677

Differences from MATLAB: the initial step and step-size controller are this implementation's

own, so steps, statistics and the last digits of solution values can differ.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.