Command Reference : Matrix Language Reference
  
 
@trmean
Syntax: @trmean(A, p)
Argument 1: vector or matrix, A
Argument 2: scalar, p
Return: scalar
Returns the p-percent trimmed mean of vector or matrix A, i.e. the mean of A after the p-percent largest and smallest values have been removed. Example:
matrix m = @mrnd(10,10)
m(1,1) = 1000
@mean(m)
@trmean(m,1)
The mean of m should be approximately 10.495, whereas the trimmed mean (with the largest and smallest 1% trimmed off) should be close to 0.5.
See also @ctrmean.