Aerospace Blockset | ![]() ![]() |
Convert Euler angles to direction cosine matrix
Library
Description
The Euler Angles to Direction Cosine Matrix block converts the three Euler rotation angles into a 3-by-3 direction cosine matrix (DCM). The DCM matrix performs the coordinate transformation of a vector in inertial axes into a vector in body axes
. The order of the axis rotations required to bring
into coincidence with
is first a rotation about
through the roll angle
to axes
. Second a rotation about
through the pitch angle
to axes
, and finally a rotation about
through the yaw angle
to axes
.
Combining the three axis transformation matrices defines the following DCM.
Dialog Box
Inputs and Outputs
The input is a 3-by-1 vector of Euler angles.
The output is a 3-by-3 direction cosine matrix.
Examples
See aeroblk_six_dof.mdl
to see the use of the Euler Angles to Direction Cosine Matrix block in the implementation of the equations of motion for a rigid body.
See Also
Direction Cosine Matrix to Euler Angles
Direction Cosine Matrix to Quaternions
Euler Angles to Quaternions
Quaternions to Direction Cosine Matrix
![]() | Dryden Wind Turbulence Model | Euler Angles to Quaternions | ![]() |