function m = mean2(mat)
m = mean(mat(:));
%end
