Matrix dimensions must agree.

2 次查看(过去 30 天)
How do I multiply a 2x101 matrix with a 101x101 matrix??
I tried everything, it gives me the above error every time.
Please help,
Thanks, Rohan

采纳的回答

Walter Roberson
Walter Roberson 2013-3-29
>> A = rand(2,101); B = rand(101,101); size(A*B)
ans =
2 101
  3 个评论
Rohan Repale
Rohan Repale 2013-3-29
all I get in this case is 2 101
Rohan Repale
Rohan Repale 2013-3-29
OK! got it, thnk u so much!!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by