eul = quat2eul(quat) converts a
quaternion rotation, quat, to the corresponding Euler angles,
eul. The default order for Euler angle rotations is
"ZYX".
eul = quat2eul(quat,sequence)
converts a quaternion into Euler angles. The Euler angles are specified in the axis
rotation sequence, sequence. The default order for Euler angle
rotations is "ZYX".
[eul,eulAlt] = quat2eul(___)
also returns an alternate set of Euler angles that represents the same rotation
eulAlt.
quat — Unit quaternion n-by-4 matrix | n-element vector of quaternion objects
Unit quaternion, specified as an n-by-4 matrix or
n-element vector of quaternion objects containing
n quaternions. If the input is a matrix, each row is
a quaternion vector of the form q = [wxyz], with w as the scalar
number.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.