MATLAB: Wrong matrix multiplication answer

matrix multiplication

Hi, When I multiply a and b
a=[1 -2 0; 3 2 1; -2 1 3];
b=[4, -2 3;-1 5 0;6 1 2];
I get this answer
ans =
6 -12 3
16 5 11
9 12 0
The second row appears to be incorrect. When I do it by hand, the second row becomes [4 3 7]
I'm new to Matlab; is my syntax ok?

Best Answer

I think you are doing something wrong by hand. The result
6 -12 3
16 5 11
9 12 0
is correct