nass-simscape/Rotation_matrix_angles.m

4 lines
110 B
Mathematica
Raw Normal View History

2018-04-17 15:12:13 +02:00
thetax=atan2(-R(2,3),R(3,3));
thetay=atan2(R(1,3),sqrt((R(1,1))^2+(R(1,2))^2));
thetaz=atan2(-R(1,2),R(1,1));