count=0;
b = [];
%A =randi([1,9999],10,31);
A =randi([1,60],10,31);
[row,col]=size(A);
for i=1: row
for j =1:col
%if A(i,j)==4000
if A(i,j)==10
count = count+1;
b=[b; count i,j];
end
end
end
b