Feeds
답변 있음
Creating a Matrix using a nested "for" loop.
M = zeros(3); for i = 1:3 for j = 1:3 M(i,j)=3*i; %it can also be 3*j,as the matrix is 3x3 end ...
Creating a Matrix using a nested "for" loop.
M = zeros(3); for i = 1:3 for j = 1:3 M(i,j)=3*i; %it can also be 3*j,as the matrix is 3x3 end ...
거의 7년 전 | 0
