powered by
This function returns the rank of each element within each column of a matrix. The highest element receives the highest rank.
rankIndex(sortedIdx)
a rank matrix
is the input matrix