clc;
clear all;

%Matrix definition
A=[8  2 -9  9  4  5  7  8
   7  1  1  7  3  4  8 10];

%Find mean value
s=0;

for i=1:2     %size(A,1)
    for j=1:8 %size(A,2)
        s=s+A(i,j)
        pause %фп pause еЯнбй гйб Элегчп
    end
end

M=s/16; %(size(A,1)*size(A,2))

%Display mean value
fprintf('Mean value of matrix A is: %.2f\n',M);