Difference between revisions of "Dcm2euler.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(See also)
m (Rename Arguments section heading to Parameters)
Line 10: Line 10:
 
                       angles=dcm2euler(dcm)
 
                       angles=dcm2euler(dcm)
  
==Arguments==
+
==Parameters==
  
 
     dcm                - directional cosine matrix
 
     dcm                - directional cosine matrix

Revision as of 18:48, 5 June 2026

Converts directional cosine matrix into Euler angles, ZYZ active convention (rotating the object rather than the axes).

Syntax

               [alpha,beta,gamma]=dcm2euler(dcm)

                              OR

                     angles=dcm2euler(dcm)

Parameters

    dcm                - directional cosine matrix

Outputs

    alpha, beta, gamma - Euler angles in ZYZ active con-
                         vention, radians

    angles             - a row vector of Euler angles in
                         ZYZ active convention, ordered 
                         as alpha, beta, gamma, in radians

Notes

The problem of recovering Euler angles from a DCM is, in general, ill-posed. This function is a product of considerable work, it has passed rigorous testing: it either returns a correct answer or gives an informative error. See the notes on rotation conventions for the basic definitions of rotations in Spinach.

See also

euler2dcm.m, wigner.m, dcm2wigner.m

Version 2.3, authors: Ilya Kuprov