Matrix for double pendulum not populating last column

1 次查看(过去 30 天)
Hi, I have written this code to solve a double pendulum using ode 45 but the last column isn't populating. Any idea why?

回答(1 个)

Youssef  Khmou
Youssef Khmou 2014-11-2
This problem is sensitive to initial conditions, you can start by checking the equations, or values given to variables. In function callpen if for example you change the displacement b to 2.99 instead of 3, the fourth column changes : [0,0.0113,0.0225,0.0338,....,0.6760]

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by