フィルターのクリア

Can i trasform a complex double into euler representation

4 ビュー (過去 30 日間)
Andrea Gusmara
Andrea Gusmara 2020 年 11 月 3 日
コメント済み: Alan Stevens 2020 年 11 月 3 日
Hi to everyone , I'm working with a kalman filter for heading estimation . I'm using quaternion for estimating the orientation . At the end of the execution i have a complex double quaternion data and I can't to trasform into euler representation.
-14.6566171621163 + 0.495320247582976i
-0.459846284143683 + 0.100914051723435i
-6.39252310373873 - 0.0494395243698083i
-2.56597822306176 + 0.475119224468788i
Can someone help me ?

採用された回答

Alan Stevens
Alan Stevens 2020 年 11 月 3 日
Can you use abs and angle?
>> a = -14.6566171621163 + 0.495320247582976i;
b = -0.459846284143683 + 0.100914051723435i;
c = -6.39252310373873 - 0.0494395243698083i;
d = -2.56597822306176 + 0.475119224468788i;
M = [a;b;c;d];
Mp = [abs(M) angle(M)]
Mp =
14.6650 3.1078
0.4708 2.9256
6.3927 -3.1339
2.6096 2.9585
  2 件のコメント
Andrea Gusmara
Andrea Gusmara 2020 年 11 月 3 日
what 's the meanig of the absolute in thsi representation?
Alan Stevens
Alan Stevens 2020 年 11 月 3 日
abs(a+bi) = sqrt(a^2 + b^2) i.e it's the magnitude
a+bi = abs(a+bi)*exp(i*theta) where theta is angle(a+bi)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQuaternion Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by