Matrix division does not work because of matrix dimensions
4 views (last 30 days)
Show older comments
Hadi Ghahremannezhad
on 21 Nov 2019
Commented: Ridwan Alam
on 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 Comments
Accepted Answer
Ridwan Alam
on 21 Nov 2019
Edited: Ridwan Alam
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!