FUNCTION REFERENCE

dde23

Solve delay differential equations with constant delays.

Solve delay differential equations with constant delays.

Syntax

sol = dde23(@(t,y,Z) f, lags, history, tspan)

Syntax

sol = dde23(@f, lags, @history, tspan, options)

Uses the Bogacki-Shampine 2(3) pair with cubic Hermite history, following Shampine

and Thompson, "Solving DDEs in MATLAB" (2001), sections 2 and 4-7. Potential

discontinuities from initial history jumps and Jumps are propagated through three

delay additions and included in the mesh. A continuous restart from a previous

solution does not introduce a new initial jump. Steps longer than a delay use bounded fixed-point

iteration; unsuccessful steps are reduced. history is a constant vector, a

function of t, or a previous solution. Z(:,j) is y(t - lags(j)). sol has fields

solver, history, discont, x, y, stats and yp (and xe, ye, ie with Events).

Example

sol = dde23(@(t,y,Z) -Z, 1, 1, [0 2]); deval(sol, 2)   % -0.5000

Differences from MATLAB: step sizes, statistics and last-digit rounding can differ;

NormControl and OutputFcn are not supported.

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