How to implement Forward Euler Method on a system of ODEs - Matlab

淺唱寂寞╮ 提交于 2020-01-16 08:25:06

问题


I was wondering if it is possible to solve a ODE system 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, . I use Matlab as programming language. Or should I adjust the function?

来源:https://stackoverflow.com/questions/59333524/how-to-implement-forward-euler-method-on-a-system-of-odes-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!