Difference between revisions of "Dcm2euler.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Converts DCM into Euler angles (Varshalovich B convention). Syntax: [alpha,beta,gamma]=dcm2euler(dcm) OR ...")
 
Line 1: Line 1:
Converts DCM into Euler angles (Varshalovich B convention). Syntax:
+
{{DISPLAYTITLE:dcm2euler.m}} __NOTOC__
 +
Converts DCM into Euler angles, ZYZ active convention (rotating the object rather than the axes).
  
                    [alpha,beta,gamma]=dcm2euler(dcm)
+
==Syntax==
  
                                    OR
+
                [alpha,beta,gamma]=dcm2euler(dcm)
 +
 +
                              OR
 +
 +
                      angles=dcm2euler(dcm)
  
                          angles=dcm2euler(dcm)
+
==Arguments==
  
In the latter case, anglews is a row vector containing the three Euler angles, ordered as [alpha beta gamma].
+
    dcm                - directional cosine matrix
  
Note: The problem of recovering Euler angles from a DCM is in general ill-posed. The function below is a product of very considerable amount of thought and has has passed rigorous testing. In all cases it either returns a correct answer or gives an informative error message.
+
==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 also==
 +
[[euler2dcm.m]], [[euler2wigner.m]], [[dcm2wigner.m]]
 +
 
 +
 
 +
''Version 2.3, authors: [[Ilya Kuprov]]''

Revision as of 12:31, 26 December 2018

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

Syntax

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

                              OR

                     angles=dcm2euler(dcm)

Arguments

    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 also

euler2dcm.m, euler2wigner.m, dcm2wigner.m


Version 2.3, authors: Ilya Kuprov