How can i implement Central difference method to solve ODE

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

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.

댓글을 달려면 로그인하십시오.

카테고리

질문:

2021년 4월 20일

답변:

2021년 6월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by