Error using * Inner matrix dimensions must agree

20 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by