I cant take inverse of J matris. it is jacobian.

syms x g h k l q a b c d f
y1 = (x*cos(q)+x*cos(g)-f*cos(l)-(b/2)*cos(h)-a*cos(q));
y2 = (x*sin(q)+x*sin(g)-f*sin(l)-(b/2)*sin(h)-a*sin(q));
y3 = (a*cos(q)+b*cos(h)-c*cos(k)-d);
y4 = a*sin(q)+b*sin(h)-c*sin(k);
y = [y1; y2; y3; y4];
v = [x; (h); (k); (l)];
J = jacobian(y, v);
inv(J)
J * inv(J)

6 件のコメント

John D'Errico
John D'Errico 2013 年 12 月 26 日
Why can't you do that? Works for me.
Emrah
Emrah 2013 年 12 月 26 日
J*inv(J) should give the unit matrix but it is not.
Walter Roberson
Walter Roberson 2013 年 12 月 26 日
It would only give the unit matrix if J is non-singular.
Emrah
Emrah 2013 年 12 月 26 日
編集済み: Emrah 2013 年 12 月 26 日
ie, is this true; inv(J)?
Walter Roberson
Walter Roberson 2013 年 12 月 26 日
What does rank(J) indicate ?
Emrah
Emrah 2013 年 12 月 26 日
I dont understand what you mean? J matrix is jacobian matris. rank(J) = 4 gives me. :(

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

 採用された回答

A Jenkins
A Jenkins 2013 年 12 月 26 日
編集済み: A Jenkins 2013 年 12 月 26 日

1 投票

simplify(J*inv(J))
ans =
[ 1, 0, 0, 0]
[ 0, 1, 0, 0]
[ 0, 0, 1, 0]
[ 0, 0, 0, 1]

1 件のコメント

Emrah
Emrah 2013 年 12 月 27 日
Oh!! it was so easy. :D thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRobust Control Toolbox についてさらに検索

製品

タグ

質問済み:

2013 年 12 月 26 日

コメント済み:

2013 年 12 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by