Command Reference : Function Reference : Function Reference: C
  
 
@ctrmean
Trimmed mean of each column of a matrix.
Syntax: @ctrmean(m, p)
m: matrix
p: number
Return: vector
Returns a vector of trimmed means, each the result of applying @trmean to columns of m.
Examples
matrix m = @mrnd(100,10)
m(1,1) = 1000
= @cmean(m)
returns a vector of column means of M, the first of which should be approximately 10.495, the rest of which should be around 0.5.
= @ctrmean(m,1)
returns a vector of trimmed column means of M, all of which should be approximately 0.5.
Cross-references
See also @trmean.