dcmbody2stability
Description
calculates the direction cosine matrix dcm
= dcmbody2stability(anglesOfAttack
)dcm
for given set of angles of
attack anglesOfAttack
.
Examples
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 Attack
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
anglesOfAttack
— Angles of attack
vector
Angles of attack, specified as a vector, in radians.
Data Types: double
Output Arguments
dcm
— Direction cosine matrices
3-by-3-by-m matrix
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
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)