@lti/xperm
Function File: retsys = xperm (sys, idx)
Reorder states in state-space models.
Inputs
sys.stname. State names
only work if they were assigned explicitly before, i.e.
sys.stname contains no empty strings.
Note that if certain state indices of sys are
missing or appear multiple times in idx, these
states will be pruned or duplicated accordingly in the
resulting state-space model retsys.Outputs
Source Code: @lti/xperm