clc;
clear all;

A=[0   9  -4  20  
   8   2   4  10  
   2  -2   4   7];

s=0;
for i=1:size(A,1)
    s=s+A(i,4)
    pause
end
M1=s/size(A,1)

s=0;
for j=1:size(A,2)
    s=s+A(2,j)
    pause
end
M2=s/size(A,2)

fprintf('Mean value of 4th column and 2nd row are respectively: %.2f and %.2f\n',M1,M2);
