Error using * Inner matrix dimensions must agree
1 次查看(过去 30 天)
显示 更早的评论
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
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!