How can I use '&' between two different matrix ?

조회 수: 2 (최근 30일)
Rinrada Wongsaichua
Rinrada Wongsaichua 2016년 7월 15일
댓글: Walter Roberson 2016년 7월 15일
For example
aa =
1 2 3
4 5 6
bb =
1 2
3 4
5 6
And I wanna create cc = aa & bb; But there's some problem they said ..
What does it means ? And how can i fix it ?
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 7월 15일
What would you like the result to be? Do you want the result to be 2 x 3 like aa ? 3 x 2 like bb ? 2 x 2 because that is what they have in common? 3 x 3 by extending to the limits of both?

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2016년 7월 15일
The dimensions of aa and bb are different. aa is 2X3 and bb is 3x2.. you have to transpose any of the matrix.
Eg:
cc = aa' & bb
or
cc = aa & bb'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by