% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));