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 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 = 220.1000 0 0
Version History
Introduced in R2021a
See Also
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
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)