MATLAB ヘルプ センター
Convert transformation or rotation to numeric quaternion
q = quat(transformation)
q = quat(rotation)
q = quat(transformation) creates a quaternion q from the rotation of the transformation transformation.
q
transformation
example
q = quat(rotation) creates a quaternion q from the rotation rotation.
rotation
collapse all
This example uses:
Create SE(3) transformation with zero translation and a rotation defined by a numeric quaternion.
quat1 = [0.9659 0.2588 0 0]
quat1 = 1×4 0.9659 0.2588 0 0
T = se3(quat1,"quat")
T = se3 1.0000 0 0 0 0 0.8660 -0.5000 0 0 0.5000 0.8660 0 0 0 0 1.0000
Convert the transformation back into a numeric quaternion.
quat2 = quat(T)
quat2 = 1×4 0.9659 0.2588 0 0
Create SO(3) rotation defined by a numeric quaternion. Use the eul2quat function to create the numeric quaternion.
eul2quat
R = so3(quat1,"quat")
R = so3 1.0000 0 0 0 0.8660 -0.5000 0 0.5000 0.8660
Convert the rotation into a numeric quaternion.
quat2 = quat(R)
se3
Transformation, specified as an se3 object or as an N-element array of se3 objects. N is the total number of transformations.
so3
Rotation, specified as an so3 object or as an N-element array of so3 objects. N is the total number of rotations.
Quaternion rotation angles, returned as an M-by-4 matrix, where each row is of the form [qw qx qy qz]. M is the total number of transformations or rotations specified.
se3 | so3 | quaternion
quaternion
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ