Comparing two rotation matrices
Apparently you have mistaken array multiplication for matrix multiplication. In Octave, acos((trace(A'*B)-1)/2)*360/2/pi
gives 0.0365 degree, but acos((trace(A'.*B)-1)/2)*360/2/pi
(note it's .*
here instead of *
) gives 23.86 degrees.
In NumPy, *
means array multiplication, not matrix multiplication. Your Python code seems to be incorrect.