Viraj
Followers: 0 Following: 0
Feeds
已回答
Squeezing a two-dimensional array into a one-dimensional array without using a FOR loop
A=[1 2 3 4; 5 6 7 8; 9 10 11 12]; B=zeros(1,size(A,1)*size(A,2)); k=1; for i=1:size(A,1) for j=1:size(A,2) B(k)...
Squeezing a two-dimensional array into a one-dimensional array without using a FOR loop
A=[1 2 3 4; 5 6 7 8; 9 10 11 12]; B=zeros(1,size(A,1)*size(A,2)); k=1; for i=1:size(A,1) for j=1:size(A,2) B(k)...
2 years 前 | 0