ctr = 1;

for i=1:10
    for j=1:10
        A(ctr,:) = [i j];
        ctr = ctr + 1;
    end
end