% Example of how to use for-loop programming in MATLAB

M=zeros(10,10);
for i=1:10
    for j=1:10
        M(i,j)=i*j;
    end
end