Error using * Inner matrix dimensions must agree

조회 수: 1 (최근 30일)
E. sarah
E. sarah 2016년 4월 27일
답변: Andrei Bobrov 2016년 4월 28일
I enter this h=abs((j*w*R*c)./((j*w*R*c)-(w*w*L*c)+1)); but it told me that Error using * Inner matrix dimensions must agree how can i solve it?
  댓글 수: 1
Roger Stafford
Roger Stafford 2016년 4월 27일
Please show us the results of:
size(w)
size(R)
size(c)
size(L)
size(j)
Then we can answer your question.

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

답변 (2개)

Muhammed Fasil
Muhammed Fasil 2016년 4월 28일
Dear E. sarah,
Follow matrix multiplication rule eg: If u want to multiple w*R where w has order AxB and R has order BxC then inorder them to be multiplied Ax B* B xC, B of both variable(w and R) should be same.
Check your variable orders as suggested by Roger.

Andrei Bobrov
Andrei Bobrov 2016년 4월 28일
maybe so?
h=abs((j*w*R*c)./((j*w*R*c)-(w .* w*L*c)+1));

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by