Multiplying a Matrix with every column of another matrix

7 vues (au cours des 30 derniers jours)
Iman Askari
Iman Askari le 18 Fév 2021
Commenté : Iman Askari le 18 Fév 2021
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.

Réponse acceptée

the cyclist
the cyclist le 18 Fév 2021
Do you mean you just want to do standard matrix multipication?
C = A * B
Or did I misunderstand?
  1 commentaire
Iman Askari
Iman Askari le 18 Fév 2021
Oh well. Thinking about it more I this it is.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Operating on Diagonal Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by