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 (Control System Toolbox) and dss (Control System Toolbox).