multiply matrices with different dimensions with loop

4 次查看(过去 30 天)
Hello, I have two matrices A of [1532x84] and B of [84x1], and I have to multiply them to obtain a matrix C of [1532x84]. How can I create a loop where to multiply each row of A by column of B with Matlab?

回答(1 个)

James Tursa
James Tursa 2020-12-2
Is this what you want?
C = A .* B.';

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by