필터 지우기
필터 지우기

Solving constrained differential equations

조회 수: 11 (최근 30일)
Salil Kulkarni
Salil Kulkarni 2022년 9월 15일
댓글: Salil Kulkarni 2022년 9월 16일
I would like to solve coupled differential equations with some constraints. The detailed question appear below
  댓글 수: 2
Torsten
Torsten 2022년 9월 16일
The people in this forum are not LATEX interpreters.
Salil Kulkarni
Salil Kulkarni 2022년 9월 16일
I am sorry. I could not figure out how to type matrices in the Mathworks forum. I have posted my question again

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

채택된 답변

Torsten
Torsten 2022년 9월 16일
편집: Torsten 2022년 9월 16일
Solving the above system is only possible in the form
M = [1 0 0 0 0; ...
0 m1 0 0 0; ...
0 0 1 0 0; ...
0 0 0 m2 0; ...
0 m2*tan(theta) 0 -m2*tan(theta) 0];
f = [y2 ; -sin(theta)*N ; y4 ; sin(theta)*N ; -m2*g+cos(theta)*N];
M*[y1dot ; y2dot ; y3dot ; y4dot ; Ndot] = f(y1,y2,y3,y4,N)
But you might get the message from the integrator that the index of the system is >1.
Test it.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by