From cf3517788349248fc383f37ac105c7755a4475e9 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 17 Apr 2018 15:12:13 +0200 Subject: [PATCH] add rotation angle script --- Rotation_matrix_angles.m | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Rotation_matrix_angles.m diff --git a/Rotation_matrix_angles.m b/Rotation_matrix_angles.m new file mode 100644 index 0000000..518669a --- /dev/null +++ b/Rotation_matrix_angles.m @@ -0,0 +1,3 @@ +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));