Confusion with SpinCalc angle sign not being mathematical positive

1 view (last 30 days)
Hi John,
when using the SpinCalc function I experienced the conventions for singed angles are different, meaning sitting on the coordinate-vector and looking into its direction, rotating counterclockwise is positive in the function.
Could you confirm this. The following simple check caused confusion: your function:
EV = [axis, angle.* 360/(2*pi)]
OUTPUT = SpinCalc('EVtoDCM', EV, 1e-2, 0)
double check via elementary rotation matrix:
rx = angle;
Rx = [1 0 0;0 cos(rx) -sin(rx);0 sin(rx) cos(rx)]
I get these contradicting values: When
axis =
1 0 0
angle =
1.5708
EV =
1 0 0 90
OUTPUT =
1.0000 0 0
0 0.0000 1.0000
0 -1.0000 0.0000
Rx =
1.0000 0 0
0 0.0000 -1.0000
0 1.0000 0.0000
What do you think about the signs of the angles?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!