quat = tform2quat(tform) extracts
the rotational component from a homogeneous transformation, tform,
and returns it as a quaternion, quat. The translational
components of tform are ignored. The input homogeneous
transformation must be in the premultiply form for transformations.
Homogeneous transformation, specified by a 4-by-4-by-n matrix
of n homogeneous transformations. The input homogeneous
transformation must be in the premultiply form for transformations.
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™.