How can i implement Central difference method to solve ODE
11 次查看(过去 30 天)
显示 更早的评论
I am trying to implement the central difference method in matlab using code to solve a spring-damper mass system with the equation:

the values for the coefficients are given.
1 个评论
Jan
2021-4-20
Central differences are useful to determine a dreivative, if you have numerical data of a curve. I do not know an application, where central differences are useful to solve an ODE. Use an ODE solver instead, e.g. ode45.
回答(1 个)
Sulaymon Eshkabilov
2021-6-12
Here is a good discussion and code how to implement the central difference method in solving ODEs:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!