Feeds
已回答
How do I create a square matrix based on user input?
m=input('row') n=input('column') for i=1:m for j=1:n a(i,j)=input('elements-') end end a=reshape(a,m,n) ...
How do I create a square matrix based on user input?
m=input('row') n=input('column') for i=1:m for j=1:n a(i,j)=input('elements-') end end a=reshape(a,m,n) ...
4 years 前 | 0
