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)
      s = [Matrix] 4 x 1
-92.38795 + 38.26834i
-92.38795 - 38.26834i
-38.26834 + 92.38795i
-38.26834 - 92.38795i
idx = [Matrix] 4 x 1
3
4
1
2
    Comments
The function operates on a matrix p by column.