このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
setState
クラス: Aero.FixedWing.State
名前空間: Aero
構文
state = setState(state,statename,value)
入力引数
スカラーとして指定された Aero.FixedWing.State オブジェクト。
ベクトルとして指定された状態値。
状態がすべてスカラー定数の場合、
valueは数値ベクトルになります。1 つ以上の状態がスカラー定数でない場合、
valueはセル ベクトルになります。
ヒント
statename と value の各ベクトルの長さは同じである必要があります。
出力引数
指定された場所で変更された状態を持つ変更された入力オブジェクト。
例
巡航状態のピッチ角を設定します。
[C182, CruiseState] = astC182();
CruiseState = setState(CruiseState, "Alpha", 5)CruiseState =
State with properties:
Alpha: NaN
Beta: NaN
AlphaDot: 0
BetaDot: 0
Mass: 82.2981
Inertia: [3×3 table]
CenterOfGravity: [1.2936 0 0]
CenterOfPressure: [1.2250 0 0]
AltitudeMSL: 5000
GroundHeight: 0
XN: 0
XE: 0
XD: -5000
U: 220.1000
V: 0
W: 0
Phi: 0
Theta: 0
Psi: 0
P: 0
Q: 0
R: 0
Weight: 2.6500e+03
AltitudeAGL: 5000
Airspeed: NaN
GroundSpeed: 220.1000
MachNumber: NaN
BodyVelocity: [NaN NaN NaN]
GroundVelocity: [220.1000 0 0]
Ur: NaN
Vr: NaN
Wr: NaN
FlightPathAngle: 0
CourseAngle: 0
InertialToBodyMatrix: [3×3 double]
BodyToInertialMatrix: [3×3 double]
BodyToWindMatrix: [3×3 double]
WindToBodyMatrix: [3×3 double]
DynamicPressure: NaN
Environment: [1×1 Aero.Aircraft.Environment]
UnitSystem: "English (ft/s)"
AngleSystem: "Radians"
TemperatureSystem: "Fahrenheit"
ControlStates: [1×4 Aero.Aircraft.ControlState]
OutOfRangeAction: "Limit"
DiagnosticAction: "Warning"
Properties: [1×1 Aero.Aircraft.Properties]巡航状態の U、V、および W 速度成分を設定します。
[C182, CruiseState] = astC182(); CruiseState = setState(CruiseState, ["U", "V", "W"], [50, 1, 10])
CruiseState =
State with properties:
Alpha: 0.1974
Beta: 0.0196
AlphaDot: 0
BetaDot: 0
Mass: 82.2981
Inertia: [3×3 table]
CenterOfGravity: [1.2936 0 0]
CenterOfPressure: [1.2250 0 0]
AltitudeMSL: 5000
GroundHeight: 0
XN: 0
XE: 0
XD: -5000
U: 50
V: 1
W: 10
Phi: 0
Theta: 0
Psi: 0
P: 0
Q: 0
R: 0
Weight: 2.6500e+03
AltitudeAGL: 5000
Airspeed: 51
GroundSpeed: 51
MachNumber: 0.0465
BodyVelocity: [50 1 10]
GroundVelocity: [50 1 10]
Ur: 50
Vr: 1
Wr: 10
FlightPathAngle: 0.1974
CourseAngle: 0.0200
InertialToBodyMatrix: [3×3 double]
BodyToInertialMatrix: [3×3 double]
BodyToWindMatrix: [3×3 double]
WindToBodyMatrix: [3×3 double]
DynamicPressure: 2.6639
Environment: [1×1 Aero.Aircraft.Environment]
UnitSystem: "English (ft/s)"
AngleSystem: "Radians"
TemperatureSystem: "Fahrenheit"
ControlStates: [1×4 Aero.Aircraft.ControlState]
OutOfRangeAction: "Limit"
DiagnosticAction: "Warning"
Properties: [1×1 Aero.Aircraft.Properties]バージョン履歴
R2021a で導入
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)