matrix auto creation problem
If I want to make a matrix that inserts M as the order and it directly create a matrix with numbers from 1-M*M in that matrix. How should I like complete it
m=input(‘insert the degree of matrix’)
for i=1:m
for j=1:m
a(i,j)=
endfor
endforIf I want to make a matrix that inserts M as the order and it directly create a matrix with numbers from 1-M*M in that matrix. How should I like complete it
m=input(‘insert the degree of matrix’)
for i=1:m
for j=1:m
a(i,j)=
endfor
endfor If I want to make a matrix that inserts M as the order and it directly create a matrix with numbers from 1-M*M in that matrix. How should I like complete it
m=input(‘insert the degree of matrix’)
for i=1:m
for j=1:m
a(i,j)=
endfor
endfor matrix, matrix manipulation, matrix array MATLAB Answers — New Questions