Multiplying a Vector by a Matrix in matlab
1 次查看(过去 30 天)
显示 更早的评论
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
2019-2-19
What would you expect to be the result of multiplying a 3x3 matrix with a 1x5 vector?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!