Error using * Inner matrix dimensions must agree

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 comentario

Please show us the results of:
size(w)
size(R)
size(c)
size(L)
size(j)
Then we can answer your question.

Iniciar sesión para comentar.

Respuestas (2)

Muhammed Fasil
Muhammed Fasil el 28 de Abr. de 2016

0 votos

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 el 28 de Abr. de 2016
maybe so?
h=abs((j*w*R*c)./((j*w*R*c)-(w .* w*L*c)+1));

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Abr. de 2016

Respondida:

el 28 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by