Can I multiply a Vector with a Matrix?
18 次查看(过去 30 天)
显示 更早的评论
Hi;
Sorry for my english. I've a big problem, I want multiply a vector by a matrix:
ES: A=< 1x1250 double >; B= is a matrix < 421x421 double >;
C=A*B; ??? Error using ==> Inner matrix dimensions must agree
or if
C=A.*B; ??? Error using ==> times Matrix dimensions must agree.
Please help me!!! Thanks
1 个评论
采纳的回答
更多回答(1 个)
Matt J
2012-10-29
In the expression A.*B, the matrices A and B must have the same number of rows and columns.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!