MATLAB: Matrix division does not work because of matrix dimensions

matrix

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."

Best Answer

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?