MATLAB 도움말 센터
Reorder states in state-space models
sys = xperm(sys,P)
sys = xperm(sys,P) reorders the states of the state-space model sys according to the permutation P. The vector P is a permutation of 1:NX, where NX is the number of states in sys. For information about creating state-space models, see ss and dss.
sys
P
ss
dss
collapse all
Load a previously saved state space model ssF8 with four states.
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
Order the states in alphabetical order.
[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
The states in ssF8 now appear in alphabetical order.
Introduced in R2008b
ss | dss
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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의