x = [10.1,11.5,9.6,9.6,10.4,9.4,10.2,9.9,9.1,9.8];
xmed = median(x);
n = length(x);
for i = 1:n
    xdev(i) = abs(x(i)-xmed);
end
xMAD = median(xdev)/0.6745;
disp(xMAD);
