TRIMMEAN calculates the trimmed mean by removing the upper and lower (p/2)% samples. Missing values (encoded as NaN) are also removed. Q = trimmean(Y,p) Q = trimmean(Y,p,DIM) returns the TRIMMEAN along dimension DIM of sample array Y. see also: MAD, RANGE, HISTO2, HISTO3, PERCENTILE, QUANTILE