Command Reference : Function Reference : Function Reference: C
  
 
@colpctiles
Percentile values for each column of a matrix.
Syntax: @colpctiles(m[, o])
m: matrix, vector
o: (optional) string
Return: matrix, vector
Returns a matrix where each column contains the percentiles of the values of the corresponding column of m
The option o controls the direction of the ranking: ā€œaā€ (ascending - default) or ā€œdā€ (descending).
Examples
Let MAT be a matrix with two columns. Then
= @colpctiles(mat)
and
= @hcat(@pctiles(mat.@col(1)), @pctiles(mat.@col(2)))
are equivalent.
Cross-references
See also @pctiles.