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개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by