Element Wise Multiplication for varying matrix sizes

1 次查看(过去 30 天)
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!

采纳的回答

Walter Roberson
Walter Roberson 2013-11-26
FirstMatrix .* repmat(SecondVector, size(FirstMatrix,1), 1)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by