Code covered by the BSD License

### Highlights from Calcuate Euler Angles from Rotation Matrix

1.0
1.0 | 2 ratings Rate this file 17 Downloads (last 30 days) File Size: 1.28 KB File ID: #35970 Version: 1.0

# Calcuate Euler Angles from Rotation Matrix

### Sandeep Sasidharan (view profile)

This function return the rotation along x,y and z direction from a 3x3 Rotation Matrix

File Information
Description

% This function return the rotation along x,y and z direction from a
% Rotation Matrix

%Inputs:
% R= 3x3 Rotation Matrix
%Outputs:
% rx= Rotation along x direction in radians
% ry= Rotation along y direction in radians
% rz= Rotation along z direction in radians

% R =
%
% [ cos(ry)*cos(rz), -cos(ry)*sin(rz), sin(ry)]
% [ cos(rx)*sin(rz) + cos(rz)*sin(rx)*sin(ry), cos(rx)*cos(rz) - sin(rx)*sin(ry)*sin(rz), -cos(ry)*sin(rx)]
% [ sin(rx)*sin(rz) - cos(rx)*cos(rz)*sin(ry), cos(rz)*sin(rx) + cos(rx)*sin(ry)*sin(rz), cos(rx)*cos(ry)]

% Author : Sandeep Sasidharan
% http://sandeepsasidharan.webs.com

MATLAB release MATLAB 7.13 (R2011b)
10 Jun 2013 Alex Kreimer

### Alex Kreimer (view profile)

In recent MATLAB there's a 'vrrotmat2vec'

Comment only
25 Oct 2012 Georg Wiora

### Georg Wiora (view profile)

This is a nice short code, but it covers only a very special case and does not tell which one exactly.
I recommend spincalc() from Jonathan Fuller. It is much more powerfull!

http://www.mathworks.com/matlabcentral/fileexchange/20696-function-to-convert-between-dcm-euler-angles-quaternions-and-euler-vectors

25 Oct 2012 Georg Wiora