FUNCTION REFERENCE

ode23t

Solve moderately stiff differential equations and DAEs (trapezoidal rule).

Solve moderately stiff differential equations and DAEs (trapezoidal rule).

Syntax

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

Syntax

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

Syntax

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

Syntax

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

Syntax

sol = ode23t(@f, tspan, y0)

The trapezoidal rule, solved for the scaled derivative h*y' by a simplified Newton iteration

whose Jacobian is refreshed only when the iteration fails to converge. The local error is

estimated from the difference between the corrector and an explicit second-order predictor

that uses the previous step's derivative (Milne's device); the solution between steps is the

cubic Hermite interpolant. Constant, singular diagonal or function mass matrices are accepted.

See odeset for event outputs and extra arguments after options.

Example

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

Differences from MATLAB: the error estimate, initial step and iteration-matrix updates 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.