Arakala Gautham
Followers: 0 Following: 0
Feeds
已回答
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
R_vector = ones(1,size(A,1)); C_vector=ones(size(A,2),1); result = R_vector*A*C_vector;
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
R_vector = ones(1,size(A,1)); C_vector=ones(size(A,2),1); result = R_vector*A*C_vector;
4 years 前 | 0