问题
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