clc;
clear all;

A=[1 4 2 7 4 1 6 3 7 10];

%Calculate mean value
s=0;

for i=1:10
    s=s+A(i);
end

M=s/10;

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