Main Content
quat2dcm
Convert quaternion to direction cosine matrix
Syntax
Description
calculates the direction cosine matrix, dcm
= quat2dcm(q
)n
, for a given quaternion,
q
. The quaternion input and resulting direction cosine matrix
represent a right-hand passive transformation from frame A to frame B.
Aerospace Toolbox uses quaternions that are defined using the scalar-first convention. This function normalizes all quaternion inputs.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2006b
See Also
angle2dcm
| dcm2angle
| dcm2quat
| angle2quat
| quat2angle
| quatrotate