function [A] = matrix_maker(N) for i = 1:N, for j = 1:M, A(i,j) = abs(i-j); end end