MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
重新排序状态空间模型中的状态
sys = xperm(sys,P)
sys = xperm(sys,P) 根据置换向量 P 重新排序状态空间模型 sys 的状态。向量 P 是 1:NX 的置换,其中 NX 是 sys 的状态数。有关创建状态空间模型的详细信息,请参阅 ss (Control System Toolbox) 和 dss (Control System Toolbox)。
P
sys
ss
dss
全部折叠
此示例使用:
加载之前保存的包含四个状态的状态空间模型 ssF8。
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 中推出
ss (Control System Toolbox) | dss (Control System Toolbox)
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处