필터 지우기
필터 지우기

What is the matrix multiplication of these two vectors?

조회 수: 1 (최근 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개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 17일

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by