For this simple loop
for i=1:5 for j=1:5 A=[i j] end end
the result i get is 25 arrays ,2×1 each one. But i want them gathered as a matrix of 25×2.How can i simply do it?
matrixnested loops
for i=1:5 for j=1:5 A=[i j] end end
Best Answer