How to implement Forward Euler Method on a system of ODEs
Mostrar comentarios más antiguos
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 comentarios
darova
el 14 de Dic. de 2019
Yes, it's possible. Do you have any attempts?
Cynthia Struijk
el 14 de Dic. de 2019
Editada: Cynthia Struijk
el 14 de Dic. de 2019
darova
el 14 de Dic. de 2019
Where are the original equations?
Cynthia Struijk
el 14 de Dic. de 2019
Editada: Cynthia Struijk
el 14 de Dic. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!