xperm
状態空間モデルの状態を並べ替える
構文
sys = xperm(sys,P)
説明
sys = xperm(sys,P)
は、順列 P
に従って、状態空間モデル sys
の状態を並べ替えます。ベクトル P
は、1:NX の順列です。ここで、NX は sys
の状態の数です。状態空間モデルの作成の詳細は、「ss
」と「dss
」を参照してください。
例
状態空間モデルの状態をアルファベット順に並べる
前に保存した 4 つの状態をもつ状態空間モデル ssF8
を読み込みます。
load ltiexamples
ssF8
ssF8 = A = PitchRate Velocity AOA PitchAngle PitchRate -0.7 -0.0458 -12.2 0 Velocity 0 -0.014 -0.2904 -0.562 AOA 1 -0.0057 -1.4 0 PitchAngle 1 0 0 0 B = Elevator Flaperon PitchRate -19.1 -3.1 Velocity -0.0119 -0.0096 AOA -0.14 -0.72 PitchAngle 0 0 C = PitchRate Velocity AOA PitchAngle FlightPath 0 0 -1 1 Acceleration 0 0 0.733 0 D = Elevator Flaperon FlightPath 0 0 Acceleration 0.0768 0.1134 Continuous-time state-space model. Model Properties
状態をアルファベット順に並べます。
[y,P] = sort(ssF8.StateName); sys = xperm(ssF8,P)
sys = A = AOA PitchAngle PitchRate Velocity AOA -1.4 0 1 -0.0057 PitchAngle 0 0 1 0 PitchRate -12.2 0 -0.7 -0.0458 Velocity -0.2904 -0.562 0 -0.014 B = Elevator Flaperon AOA -0.14 -0.72 PitchAngle 0 0 PitchRate -19.1 -3.1 Velocity -0.0119 -0.0096 C = AOA PitchAngle PitchRate Velocity FlightPath -1 1 0 0 Acceleration 0.733 0 0 0 D = Elevator Flaperon FlightPath 0 0 Acceleration 0.0768 0.1134 Continuous-time state-space model. Model Properties
ssF8
の状態がアルファベット順に表示されています。
バージョン履歴
R2008b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)