フィルターのクリア

error index exceeds matrix dimension. I am not using matrix

1 回表示 (過去 30 日間)
Muhammad Salahul Din
Muhammad Salahul Din 2017 年 12 月 4 日
コメント済み: Sunny Katyara 2019 年 4 月 8 日
syms th d alpha a th1 th2 l1 l2 lc1 lc2 I1z I2z m1 m2
d(1,1)=m1*lc1^2+m2*(l1^2+lc2^2+2*lc2*l1*cos(th2))+I1z+I2z;
d(1,2)=m2*(lc2^2+l1*lc2*cos(th2))+I2z;
diff(d(1,2),th(1))+diff(d(1,1),th(2))
Index exceeds matrix dimensions.

採用された回答

KSSV
KSSV 2017 年 12 月 4 日
syms th d alpha a th1 th2 l1 l2 lc1 lc2 I1z I2z m1 m2
d(1,1)=m1*lc1^2+m2*(l1^2+lc2^2+2*lc2*l1*cos(th2))+I1z+I2z;
d(1,2)=m2*(lc2^2+l1*lc2*cos(th2))+I2z;
diff(d(1,2),th1)+diff(d(1,1),th2)
It should be th1 and th2 not th(1), th(2)
  3 件のコメント
Muhammad Salahul Din
Muhammad Salahul Din 2017 年 12 月 4 日
I am trying to find out christoffel symbols
Sunny Katyara
Sunny Katyara 2019 年 4 月 8 日
Dear Muhammad Salahul Din, did you find the christoffel symbols? Can you share the code here Please?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by