Average/mean of matrix elements
m = mean2(im)
im
mean2 computes the mean of a matrix using mean(im(:)).
mean2
mean(im(:))
http://sivp.sf.net