midpoint method function for ODE
1 次查看(过去 30 天)
显示 更早的评论
Just wondering how I could modify my Euler's function to get a Midpoint Method function I tried changing the equation inside the for loop to mirror the Midpoint algorithm y(i+1) = y(i) + dydt(t(i+1/2), y(i+1/2))*(t(i+1)-t(i)) but adding the halves result in a logical error

0 个评论
回答(0 个)
另请参阅
类别
在 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!