mpoles
M = mpoles (P) [M, N] = mpoles (P, TOL) [M, N] = mpoles (P, TOL, REORDER) -- multiplicity of poles. Poles that agree to within the relative tolerance TOL (default 0.001) are grouped. N is the permutation that lists the group members consecutively and M numbers the members of each group 1, 2, 3, ... With REORDER (the default) P is first ordered by decreasing magnitude.