Matrix for double pendulum not populating last column

1 Ansicht (letzte 30 Tage)
Akshay
Akshay am 1 Nov. 2014
Bearbeitet: Akshay am 3 Nov. 2014
Hi, I have written this code to solve a double pendulum using ode 45 but the last column isn't populating. Any idea why?
  2 Kommentare
Zoltán Csáti
Zoltán Csáti am 1 Nov. 2014
Could you show your paper work? Perhaps you committed a typo.
Jan
Jan am 1 Nov. 2014
I've formatted the code.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Youssef  Khmou
Youssef Khmou am 2 Nov. 2014
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]

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by