quat = eul2quat(eul) converts a
given set of Euler angles, eul, to the corresponding
quaternion, quat. The default order for Euler angle rotations
is "ZYX".
quat = eul2quat(eul,sequence)
converts a set of Euler angles into a quaternion. The Euler angles are specified in
the axis rotation sequence, sequence. The default order for
Euler angle rotations is "ZYX".
Unit quaternion, returned as an n-by-4 matrix
containing n quaternions. Each quaternion, one
per row, is of the form q = [wxyz],
with w as the scalar number.
Example: [0.7071 0.7071 0 0]
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.