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

2 vues (au cours des 30 derniers jours)
Rinrada Wongsaichua
Rinrada Wongsaichua le 15 Juil 2016
Commenté : Walter Roberson le 15 Juil 2016
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 commentaire
Walter Roberson
Walter Roberson le 15 Juil 2016
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?

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 15 Juil 2016
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'

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by