Skip to Main Content Skip to Search
Product Documentation

dsort - Sort discrete-time poles by magnitude

Syntax

dsort
[s,ndx] = dsort(p)

Description

dsort sorts the discrete-time poles contained in the vector p in descending order by magnitude. Unstable poles appear first.

When called with one lefthand argument, dsort returns the sorted poles in s.

[s,ndx] = dsort(p) also returns the vector ndx containing the indices used in the sort.

Examples

Sort the following discrete poles.

p =
  -0.2410 + 0.5573i
  -0.2410 - 0.5573i
   0.1503         
  -0.0972         
  -0.2590 

s = dsort(p)

s =
  -0.2410 + 0.5573i
  -0.2410 - 0.5573i
  -0.2590         
   0.1503         
  -0.0972 

Limitations

The poles in the vector p must appear in complex conjugate pairs.

See Also

eig | esort | pole | pzmap | sort | zero

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS