Error using * Inner matrix dimensions must agree.

error in matrix

7 comentarios

houssem alimi
houssem alimi el 17 de En. de 2019
???
Walter Roberson
Walter Roberson el 17 de En. de 2019
Editada: Walter Roberson el 17 de En. de 2019
Please explain what your tag of tjks signifies. Does it have something to do with toxicity? Is it a topic in graph theory ? Does it stand for "Tertiary Jittered Kalman Scenting" ?
houssem alimi
houssem alimi el 17 de En. de 2019
i don't found the exactly tag but i use unscented kalman filter
Walter Roberson
Walter Roberson el 18 de En. de 2019
Perhaps it would make sense to simply use the tag "matrix dimensions must agree", and to remove tjks as I suspect tjks will not mean anything to anyone other than you.
Tags are like topic indexes for card catalogs.
houssem alimi
houssem alimi el 18 de En. de 2019
how this code can be solved??
Walter Roberson
Walter Roberson el 18 de En. de 2019
dbstop if error
run the code. when it stops look at the sizes of all of the variables involved and extract portions of the expression until you figure out which multiplication is triggering the error and what the sizes are of the left and right. Then you trace backwards in the code to figure out why they got to be that size.

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 17 de En. de 2019
Editada: madhan ravi el 17 de En. de 2019

0 votos

Use size() to check the sizes of the variables if they have compatible sizes ( https://www.mathworks.com/help/matlab/matlab_prog/compatible-array-sizes-for-basic-operations.html#responsive_offcanvas ) .

1 comentario

houssem alimi
houssem alimi el 17 de En. de 2019
size(chi_m(1,i))
ans =
1 1
size(x_m)
ans =
4 9
size(y_m)
ans =
2 4
size(yt)
ans =
2 4

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Functions en Centro de ayuda y File Exchange.

Productos

Versión

R2016a

Preguntada:

el 17 de En. de 2019

Comentada:

el 18 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by