フィルターのクリア

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.
  1 件のコメント
Salil Kulkarni
Salil Kulkarni 2022 年 9 月 16 日
Thank you very much. It works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by