What is the matrix multiplication of these two vectors?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bella
am 17 Mai 2016
Kommentiert: Bella
am 17 Mai 2016
A=[ 1 1 1 4 5] and B=[1 2 3 4 5]
0 Kommentare
Akzeptierte Antwort
Todd Leonhardt
am 17 Mai 2016
Bearbeitet: Todd Leonhardt
am 17 Mai 2016
To do matrix multiplication the inner dimensions must agree. Both of your matrices are 1x5 vectors. You can do either of the following:
A' * B (results in a 5x5 matrix)
or
A * B' (results in a 1x1 scalar)
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!