Multiplying a Vector by a Matrix in matlab

조회 수: 1 (최근 30일)
Johan Johan
Johan Johan 2019년 2월 19일
댓글: Adam 2019년 2월 19일
I found this problem in matlab when i want to multiplying a vector by matrix. :
n=0:4;
r=exp(-j)*n;
o=[1 2 0; 3 2 0;5 6 1]
P=o.*r;
How can i solve this problem ?
Error using .*
Matrix dimensions must agree
  댓글 수: 1
Adam
Adam 2019년 2월 19일
What would you expect to be the result of multiplying a 3x3 matrix with a 1x5 vector?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by