Multiplying a Vector by a Matrix in matlab

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 件のコメント

Adam
Adam 2019 年 2 月 19 日
What would you expect to be the result of multiplying a 3x3 matrix with a 1x5 vector?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2019 年 2 月 19 日

コメント済み:

2019 年 2 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by