Class: Aero.FixedWing.State Package: Aero
Get state value
value = getState(state,statename)
value = getState(state,statename) gets the state value from the state name statename.
value
state
statename
expand all
Aero.FixedWing.State
Aero.FixedWing.State object, specified as a scalar.
State names, specified as a vector. For more information on state names, see the Aero.FixedWing.State Properties.
Data Types: char | string
char
string
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.
Get the angle of attack from a cruise state.
[C182, CruiseState] = astC182(); alpha = getState(CruiseState, 'Alpha')
alpha = 0
Get the U, V, and W velocity components from a cruise state.
U
V
W
[C182, CruiseState] = astC182(); uvw = getState(CruiseState, {'U', 'V', 'W'})
uvw = 220.1000 0 0
Aero.FixedWing.State | setState | setupControlStates
setState
setupControlStates