Calcuate Euler Angles from Rotation Matrix
% 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
Cite As
Sandeep Sasidharan (2025). Calcuate Euler Angles from Rotation Matrix (https://www.mathworks.com/matlabcentral/fileexchange/35970-calcuate-euler-angles-from-rotation-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Physical and Time Unit Conversions >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |