Command Reference : Matrix Language Reference
  
 
@colranks
Syntax: @colranks(m[, order])
Argument 1: matrix, m
Argument 2: (optional) option, order
Return: matrix
Returns a matrix where each column contains the ranking of the values of the corresponding column of m. The option controls the direction of the ranking: “a” (ascending - default) or “d” (descending).
Example:
matrix a = @colranks(m1, “d”)
See also @ranks, @rowranks, @capplyranks, @sort, @colsort, and @permute.