function m = moyenne(A,i,j) m = (A(i,j) + A(i+1,j) + A(i,j+1) + A(i+1,j+1))/4;