Matrix dimensions must agree.

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 日

1 投票

>> A = rand(2,101); B = rand(101,101); size(A*B)
ans =
2 101

3 件のコメント

Rohan Repale
Rohan Repale 2013 年 3 月 29 日
Hi Walter, HOw can I get the multiplication result?
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 件)

カテゴリ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by