What is the matrix multiplication of these two vectors?

6 ビュー (過去 30 日間)
Bella
Bella 2016 年 5 月 17 日
コメント済み: Bella 2016 年 5 月 17 日
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 件のコメント
Bella
Bella 2016 年 5 月 17 日
so would it be [25 16 3 2 1] ?

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 17 日

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by