Matrix division does not work because of matrix dimensions
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hadi Ghahremannezhad
el 21 de Nov. de 2019
Comentada: Ridwan Alam
el 21 de Nov. de 2019
I have two matrices:
A: 5 by 5
B: 5 by 3
How can I claculate matrix division as B divided by A?
I have used:
B / A
B \ A
B ./ A
But all of them show this message:
"Matrix dimensions must agree."
0 comentarios
Respuesta aceptada
Ridwan Alam
el 21 de Nov. de 2019
Editada: Ridwan Alam
el 21 de Nov. de 2019
B\A gives a warning, but not an error.
B\A means inv(B)*A. But your B is not square, so inv(B) won't work.
And, you are not looking for A\B?
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!