esort
Sorts continuous-time poles in descending order by the real component.
Syntax
[s, idx] = esort(p)
Inputs
- p
- The vector of system pole locations.
Outputs
- s
- The sorted poles.
- idx
- Index vector such that s = p(idx).
Examples
p = [-38.26834 + 92.38795i, -38.26834 - 92.38795i, -92.38795 + 38.26834i, -92.38795 - 38.26834i];
[s, idx] = esort(p)
[Matrix] 1 x 4
-38.26834 + 92.38795i -38.26834 - 92.38795i -92.38795 + 38.26834i -92.38795 - 38.26834i
idx = [Matrix] 1 x 4
1 2 3 4