What is the matrix multiplication of these two vectors?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
A=[ 1 1 1 4 5] and B=[1 2 3 4 5]
0 Commenti
Risposta accettata
Todd Leonhardt
il 17 Mag 2016
Modificato: Todd Leonhardt
il 17 Mag 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)
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!