% If m = 12, and n = 13 then the final solution should be a 12 x 13 matrix with the min value being 2 and max value being 25
function A = MagicArrayAdd(m,n)N = zeros(m,n)[row col] = size(N)A = 1for i = 1:row for j = i:col endendend
MATLAB: I need to generate an array where the elements in the array are the sum of the indices… I am quite lost with the nested for loop aspect… please assist if possible.
elements
Best Answer