xperm
Reorder states in state-space models
Syntax
sys = xperm(sys,P)
Description
Examples
Load a previously saved state space model ssF8 with four states.
load ltiexamples
ssF8ssF8 =
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.
Version History
Introduced in R2008b
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)