Element Wise Multiplication for varying matrix sizes

5 Ansichten (letzte 30 Tage)
Hi.. Is there anyway i could do an Element Wise Multiplication of an array of 24 by 14 to 1 by 14? I need all 24 Rows to be multiplied element-wise to the other single row matrix.
If it can't be done, how should i modify my matrix to perform this operation?
Thanks!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Nov. 2013
FirstMatrix .* repmat(SecondVector, size(FirstMatrix,1), 1)

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by