a = trimmean(x,p) mean of x excluding highest and lowest p% of the data E.g., mean([-inf 1:9 inf]) is NaN trimmean([-inf 1:9 inf], 10) is 5