Matlab scripts: Calc mean signal value of a masked image