Matrix for double pendulum not populating last column

조회 수: 1 (최근 30일)
Akshay
Akshay 2014년 11월 1일
편집: Akshay 2014년 11월 3일
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
Zoltán Csáti
Zoltán Csáti 2014년 11월 1일
Could you show your paper work? Perhaps you committed a typo.
Jan
Jan 2014년 11월 1일
I've formatted the code.

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

답변 (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