Multiplication between two matrices with different number of rows

1 次查看(过去 30 天)
Dear all,
I have two matrices:
A=[42x5];
B=[32x1];
I want to multiply each row of B to each of A.
Kind help needed. Thank you.

采纳的回答

Stephen23
Stephen23 2022-7-11
编辑:Stephen23 2022-7-11
C = permute(A,[1,3,2]) .* reshape(B,1,[])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Properties 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by