FUNCTION REFERENCE
ddesd
Solve delay differential equations with general delays.
Solve delay differential equations with general delays.
Syntax
sol = ddesd(@(t,y,Z) f, @(t,y) d, history, tspan)Syntax
sol = ddesd(@f, lags, history, tspan, options)The delays are a function returning the delayed times d(t, y) <= t, or constant lags.
Uses classical four-stage Runge-Kutta steps and a cubic Hermite interpolant with
sampled residual control, following the approach of Shampine, "Solving ODEs and
DDEs with residual control" (2005), sections 2.1 and 3. The residual compares the
interpolant's derivative with the differential equation at interior points.
Short delays use bounded fixed-point iteration. sol has fields solver, history,
x, y, stats and yp
(and xe, ye, ie with Events).
Example
sol = ddesd(@(t,y,Z) -Z, @(t,y) t - 1, 1, [0 2]); deval(sol, 1.5) % -0.3750Differences from MATLAB: residual sampling, step sizes, statistics and numerical
results can differ.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.