Multiplying a Vector by a Matrix in matlab

1 vue (au cours des 30 derniers jours)
Johan Johan
Johan Johan le 19 Fév 2019
Commenté : Adam le 19 Fév 2019
I found this problem in matlab when i want to multiplying a vector by matrix. :
n=0:4;
r=exp(-j)*n;
o=[1 2 0; 3 2 0;5 6 1]
P=o.*r;
How can i solve this problem ?
Error using .*
Matrix dimensions must agree
  1 commentaire
Adam
Adam le 19 Fév 2019
What would you expect to be the result of multiplying a 3x3 matrix with a 1x5 vector?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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