How to implement Forward Euler Method on a system of ODEs
显示 更早的评论
Hi,
I was wondering if it is possible to solve a function using the forward Euler method in the form:
function [dydt] = ODEexample(t,y, AdditionalParameters)
dydt(1:2) = y(3:4);
dydt(3:4) = y(1:2)
dydt = dydt';
end
Using a Euler method such as https://nl.mathworks.com/matlabcentral/answers/366717-implementing-forward-euler-method, .
Or should I adjust the function?
4 个评论
darova
2019-12-14
Yes, it's possible. Do you have any attempts?
Cynthia Struijk
2019-12-14
编辑:Cynthia Struijk
2019-12-14
darova
2019-12-14
Where are the original equations?
Cynthia Struijk
2019-12-14
编辑:Cynthia Struijk
2019-12-14
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!