eul = rotm2eul(rotm)
converts a rotation matrix, rotm, to the corresponding Euler
angles, eul. The input rotation matrix must be in the
premultiply form for rotations. The default order for Euler angle rotations is
"ZYX".
eul = rotm2eul(rotm,sequence)
converts a rotation matrix to Euler angles. The Euler angles are specified in the
axis rotation sequence, sequence. The default order for Euler
angle rotations is "ZYX".
Rotation matrix, specified as a 3-by-3-by-n matrix containing
n rotation matrices. Each rotation matrix has a size
of 3-by-3 and is orthonormal. The input rotation matrix must be in the
premultiply form for rotations.
Note
Rotation matrices that are slightly non-orthonormal can give
complex outputs. Consider validating your matrix before inputting to
the function.