tform2rotm
Extract rotation matrix from homogeneous transformation
Syntax
rotm = tform2rotm(tform)
Description
extracts the rotational component from a homogeneous transformation,rotm
= tform2rotm(tform
)tform
, and returns it as an orthonormal rotation matrix,rotm
. The translational components oftform
are ignored. The input homogeneous transformation must be in the pre-multiply form for transformations. When using the rotation matrix, premultiply it with the coordinates to be rotated (as opposed to postmultiplying).
Examples
Input Arguments
Output Arguments
Extended Capabilities
See Also
Introduced in R2015a
Was this topic helpful?