What is the matrix multiplication of these two vectors?

10 次查看(过去 30 天)
A=[ 1 1 1 4 5] and B=[1 2 3 4 5]

采纳的回答

Todd Leonhardt
Todd Leonhardt 2016-5-17
编辑:Todd Leonhardt 2016-5-17
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)

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-5-17

类别

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