回転行列から回転ベクトルへの変換がうまくいきません。
Show older comments
【やりたいこと】
2つの加速度計(大腿骨と下腿骨)の座標からベクトル内積を求める。
120Hzの歩行データ(データ長1200)より、x軸、y軸、z軸のオイラー角が取得できます。そこからeul2rotmを使って回転行列(3×3)へ変換、さらに'rotmat2vec3d'を使って回転ベクトル(3×1列)へ変換しようとしています。しかし以下のようなエラーが出ます。
関数 'rotmat2vec3d' (タイプ'double' の入力引数) が未定義です。
エラー: untitled (行 9)
rotationVector_tibia = rotmat2vec3d(rotm_tibia)
'rotmat2vec3d'の代わりに'rotationMatrixToVector'を使用しましたが同じエラーが出てしまいました。
原因がわかる方いましたらアドバイスよろしくお願いします。
2 Comments
Yoshio
on 7 Jun 2024
rotm_tibia が回転行列として正しい形式で、入力されているか確認してみてください。
エラーだけ見ると未定議となっています。
Kohei Yoshino
on 10 Jun 2024
Answers (0)
Categories
Find more on Model Verification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!