FUNCTION REFERENCE

ode15i

Solve fully implicit differential equations f(t, y, y') = 0 (variable-order BDF).

Solve fully implicit differential equations f(t, y, y') = 0 (variable-order BDF).

Syntax

[t, y] = ode15i(@(t,y,yp) f, tspan, y0, yp0)

Syntax

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

Syntax

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

Syntax

sol = ode15i(@f, tspan, y0, yp0)

Variable-order (1 to MaxOrder, at most 5) variable-coefficient backward differentiation

formulas for index-1 implicit equations, following Brenan, Campbell and Petzold (1996,

chapters 3 and 5) and the interpolation and initialisation mathematics of Shampine (2002).

Newton iterations use finite-difference Jacobians df/dy and df/dy'. Divided differences

control the step size and order. Use decic for consistent y0 and yp0. The interpolant

is the polynomial through the last k+1 solution points. An event callback can

take (t, y, yp) or declare the fixed input list (t, y) without the derivative.

Put any extra parameters after these inputs. See odeset for event outputs.

Example

[t, y] = ode15i(@(t,y,yp) yp + y, [0 1], 1, -1); y(end)   % approximately exp(-1)

Differences from MATLAB: values, steps, orders and statistics can differ.

Jacobian, NormControl 'on' and NonNegative options are not supported; OutputFcn

and OutputSel are supported.

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