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".
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 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.