Multiplying a Matrix with every column of another matrix

10 views (last 30 days)
Suppose we have a matrix A with dimension a*n and another matrix B with dimensions n*b. I would like to multiply matrix A with every column in B to obtain a matrix C of dimension a*b, without using a for loop.

Accepted Answer

the cyclist
the cyclist on 18 Feb 2021
Do you mean you just want to do standard matrix multipication?
C = A * B
Or did I misunderstand?

More Answers (0)

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!