function y = meanx(x)
%MEANX Mean after removing min and max
%   Y = MEANX(X) computes the mean of X after removing the smallest and
%   largest element from X.

lo = min(x);
hi = max(x);
y = (sum(x) - lo - hi) / length(x);
