Skip to content

ddesd

ode · scripts/ode/ddesd.m

: sol = ddesd (ddefun, delays, history, tspan)
: sol = ddesd (ddefun, delays, history, tspan, options)

Solve delay differential equations with general (time- or state-dependent) delays.

Integrates y'(t) = f(t, y(t), y(d(1)), ..., y(d(k))) on [tspan(1), tspan(end)] with tspan(1) < tspan(end).

delays is either a function handle d = delays(t,y) returning absolute delay times (column vector), or a constant vector of lag lengths tau meaning d(j) = t - tau(j) (MATLAB dde23-compatible form). Absolute delay arguments are clipped with min(d,t).

history may be a function handle, a constant column vector, or a previous solution structure from ddesd/dde23.

The output structure has fields x, y, yp, and solver ('ddesd'). Use deval for dense output.