A=zeros(10);
for i=1:length(A)
    for j=1:length(A)
        A(i,j)=nchoosek(max(i,j),min(i,j));
    end
end
A