MATLAB: Element wise product matrix-vector

element-wiseproduct

I have a 200x5 matrix (Y) that includes 5 time series and a 5x1 vector of weights (w). For each t (row of the matrix), I need to compute the following element-wise product:
How can I do that?
Thank you

Best Answer

S_t=Y_t.*w';
Related Question