getState
Class: Aero.FixedWing.State
Namespace: Aero
Syntax
value = getState(state,statename)
Input Arguments
state
— Aero.FixedWing.State
object
scalar
Aero.FixedWing.State
object, specified as a scalar.
statename
— State name
vector
State names, specified as a vector. For more information on state names, see the
Aero.FixedWing.State
Properties.
Data Types: char
| string
Output Arguments
value
— State values
vector
State values, returned as a vector.
If the states are all scalar constants,
value
is a numeric vector.If one of more states are not scalar constants,
value
is a cell vector.
Examples
Get Aero.FixedWing.State
Value
These examples show how to get the Aero.FixedWing.State
value.
Get Angle of Attack from Cruise State
Get the angle of attack from a cruise state.
[C182, CruiseState] = astC182();
alpha = getState(CruiseState, 'Alpha')
alpha = 0
Get U, V, and W Velocity Components
Get the U, V, and W velocity components from a cruise state.
[C182, CruiseState] = astC182(); uvw = getState(CruiseState, {'U', 'V', 'W'})
uvw = 1×3
220.1000 0 0
Version History
Introduced in R2021a
See Also
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)