Matrix division does not work because of matrix dimensions
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hadi Ghahremannezhad
am 21 Nov. 2019
Kommentiert: Ridwan Alam
am 21 Nov. 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 Kommentare
Akzeptierte Antwort
Ridwan Alam
am 21 Nov. 2019
Bearbeitet: Ridwan Alam
am 21 Nov. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!