Solve the system the differential equation with time-delays

I want to solve a system with is vector at point t, is vector at point , A is a matrix.
I used to solve system without time-delay τ with ode45 and define
function dpdt = control_law(t,p)
dpdt = A*p;
end
However, I don't know how to define function with time-delay. Please give a hint, thanks.

Categories

Asked:

on 4 Jul 2023

Commented:

on 5 Jul 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!