Rishabh Nirala
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?
A = [1:5; 6:10; 11:15; 16:20]; C = [1;1;1;1;1] R = [1 1 1 1 ] P = R * A result = P*C ANSWER = 210
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
A = [1:5; 6:10; 11:15; 16:20]; C = [1;1;1;1;1] R = [1 1 1 1 ] P = R * A result = P*C ANSWER = 210
4 years 前 | 0