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)
is the input matrix
a rank matrix