MATLAB: A way to compute dot product of an array and a vector

dot productMATLABvectors

Hi, So if I have a 2-D array such as
[1 2
3 4
5 6]
and a vector such as
[7 8]
I want to have matlab calculate the dot product of the rows of the array and the vector, and save the results as a column vector. How can I do this?

Best Answer

[1 2
3 4
5 6] * [7 8].'
Related Question