Convert body frame to stability frame transformation matrix
Determine Direction Cosine Matrix from One Angle of Attack
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
Determine Direction Cosine Matrix from Multiple Angles of Attacks
This example shows how to determine the direction cosine matrix from multiple angles of attacks.
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
anglesOfAttacks — Angles of attacks
Angles of attacks, specified as a vector, in radians.
dcm — Direction cosine matrices
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.
Introduced in R2022a