Solve the system the differential equation with time-delays
5 次查看(过去 30 天)
显示 更早的评论
I want to solve a system
with
is vector at point t,
is vector at point
, A is a matrix.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1426278/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1426283/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1426303/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1426293/image.png)
I used to solve system
without time-delay τ with ode45 and define
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1426298/image.png)
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.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!