Element wise multiplication array-matrix between each element of the array with the whole matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Eugenio Grabovic
2019 年 1 月 26 日
コメント済み: Eugenio Grabovic
2019 年 1 月 26 日
Hi, as mentioned in the title i am looking for a way to achieve a particular element wise multiplication. For example given:
A = [ 1 2 3]; B = [1 2 3;4 5 6;7 8 9];
is it possible to achieve as a result something like this:
result = cat(1,A(1).*B,A(2).*B,A(3).*B)
but with unkown A array length and without any loops ?
Thank you in advance.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!