FUNCTION REFERENCE

ode23tb

Solve stiff differential equations (TR-BDF2, implicit Runge-Kutta).

Solve stiff differential equations (TR-BDF2, implicit Runge-Kutta).

Syntax

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

Syntax

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

Syntax

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

Syntax

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

Syntax

sol = ode23tb(@f, tspan, y0)

TR-BDF2 (Bank et al. 1985; Hosea and Shampine 1996): a trapezoidal stage to t + (2-sqrt(2))h

followed by a BDF2 stage, both solved with the same iteration matrix, and the error estimate of

the companion third-order formula. The solution between steps is the quadratic through the

step's three solution values. Constant or function mass matrices are accepted.

See odeset for event outputs and extra arguments after options.

Example

[t, y] = ode23tb(@(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.