Just write your equation as a first order system, so in the end you'll have , where and F the rhs. Then just look at ode45 documentation as suggested in the comment above
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/487899-second-order-deferential-equation-ode45#comment_760965
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/487899-second-order-deferential-equation-ode45#comment_760965
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/487899-second-order-deferential-equation-ode45#comment_761710
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/487899-second-order-deferential-equation-ode45#comment_761710
Sign in to comment.