![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/18366387_1588574803192_DEF.jpg)
Tushar Parmar
Followers: 0 Following: 0
Feeds
已回答
Given a Matrix A, create a row vector of 1s that has same number of elements as A has rows
A = [1:5; 6:10; 11:15; 16:20] B(1:4)=1; f=B*A C(1:5)=1; C=C' result=f*C
Given a Matrix A, create a row vector of 1s that has same number of elements as A has rows
A = [1:5; 6:10; 11:15; 16:20] B(1:4)=1; f=B*A C(1:5)=1; C=C' result=f*C
4 years 前 | 1