Azzera filtri
Azzera filtri

回転行列から回転ベク​トルへの変換がうまく​いきません。

7 visualizzazioni (ultimi 30 giorni)
Kohei Yoshino
Kohei Yoshino il 6 Giu 2024
Commentato: Kohei Yoshino il 10 Giu 2024
【やりたいこと】
2つの加速度計(大腿骨と下腿骨)の座標からベクトル内積を求める。
120Hzの歩行データ(データ長1200)より、x軸、y軸、z軸のオイラー角が取得できます。そこからeul2rotmを使って回転行列(3×3)へ変換、さらに'rotmat2vec3d'を使って回転ベクトル(3×1列)へ変換しようとしています。しかし以下のようなエラーが出ます。
関数 'rotmat2vec3d' (タイプ'double' の入力引数) が未定義です。
エラー: untitled (行 9)
rotationVector_tibia = rotmat2vec3d(rotm_tibia)
'rotmat2vec3d'の代わりに'rotationMatrixToVector'を使用しましたが同じエラーが出てしまいました。
原因がわかる方いましたらアドバイスよろしくお願いします。
  2 Commenti
Yoshio
Yoshio il 7 Giu 2024
rotm_tibia が回転行列として正しい形式で、入力されているか確認してみてください。
エラーだけ見ると未定議となっています。
Kohei Yoshino
Kohei Yoshino il 10 Giu 2024
ご回答ありがとうございます。使用する変数の形式は正しいです。rotmat2vec3dを使用するにはComputer Vision Toolboxが必要とのことでした。

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!