MATLAB: Matrix Multiplication column and vector

MATLABmatrix multiplicationStatistics and Machine Learning Toolbox

Hi,
I am trying to solve this problem:
A is 1 column of 100k results; B is a vector of 10 weights; I need a matrix of 10 columns and 100k rows:
[(result line 1)*W1 (result line 1)*W2 (result line 2)*W1 (result line 2)*W2 …
Thank you very much,

Best Answer

A is 1 column of 100k results; W is a vector of 10 weights;
A(:)*W(:).'