Sum each element of a vector with each element of a second vector

后端 未结 2 1297
忘了有多久
忘了有多久 2021-01-20 16:48

I have two vectors and I want a matrix which elements are the sum of each element of vector 1 and each element of vector 2.

For example, the first element in the firs

2条回答
提交回复
热议问题