Main Content

dcmbody2stability

Convert body frame to stability frame transformation matrix

Since R2022a

Description

example

dcm = dcmbody2stability(anglesOfAttack) calculates the direction cosine matrix dcm for given set of angles of attack anglesOfAttack.

Examples

collapse all

This example shows how to determine the direction cosine matrix from one angle of attack.

alpha = 0.4363; 
dcm = dcmbody2stability(alpha)
dcm = 3×3

    0.9063         0    0.4226
         0    1.0000         0
   -0.4226         0    0.9063

This example shows how to determine the direction cosine matrix from multiple angles of attack.

alpha = [0.4363 0.1745]; 
dcm = dcmbody2stability(alpha)
dcm = 
dcm(:,:,1) =

    0.9063         0    0.4226
         0    1.0000         0
   -0.4226         0    0.9063


dcm(:,:,2) =

    0.9848         0    0.1736
         0    1.0000         0
   -0.1736         0    0.9848

Input Arguments

collapse all

Angles of attack, specified as a vector, in radians.

Data Types: double

Output Arguments

collapse all

Direction cosine matrices, returned as a 3-by-3-by-m matrix, where m is the number of direction cosine matrices. The direction cosine matrix performs the coordinate transformation of a vector in inertial axes to a vector in body axes.

Version History

Introduced in R2022a