Element Wise Multiplication for varying matrix sizes

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 日

0 投票

FirstMatrix .* repmat(SecondVector, size(FirstMatrix,1), 1)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by