ode15s

ODE Solvers

L-stable SDIRK2(3) solver for stiff ODEs. Use for stiff problems where ode45 is slow or fails (chemical kinetics, circuits with widely separated time constants).

Syntax

[t, y] = ode15s(f, tspan, y0)
[t, y] = ode15s(f, tspan, y0, opts)

Examples

ode15s(@(t,y) -1000*y, [0 1], 1)
▶ Run
ode15s(@(t,y) [y(2); ((1-y(1)^2)*y(2)-y(1))/1e-6], [0 2], [2; -0.6666])
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.