필터 지우기
필터 지우기

Programming a Double Pendulum

조회 수: 1 (최근 30일)
Craig
Craig 2013년 5월 17일
How do I model and solve for theta1 and theta2 for double pendulum problem? I am a complete beginner using Matlab and any programming language. I have solved for the Lagrangian by hand. I'm just not sure what needs to be in the 'for loop'. I also need to plot time theta1 and theta2. Please help me!

채택된 답변

Jan
Jan 2013년 5월 17일
There are mnany different solutions. Perhaps you simply want to integrate the Lagrange function with ODE45.
Note that the simulation is more efficient using depending coordinates and a constraint matrix (see odeset->mass matrix and DAE options), that solving the equations to independent coordinates, because the trigonometrix stuff requires a lot of time.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by