Difference between revisions of "Euler2dcm.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Converts Euler angles to a direction cosine matrix. Syntax: R=euler2dcm(alpha,beta,gamma) OR R=eul...")
 
Line 1: Line 1:
−
Converts Euler angles to a direction cosine matrix. Syntax:
+
{{DISPLAYTITLE:function.m}} __NOTOC__
 +
Converts Euler angles (ZYZ active convention) into a direction cosine matrix.
  
−
                    R=euler2dcm(alpha,beta,gamma)
+
==Syntax==
  
−
                                OR
+
    R=euler2dcm(alpha,beta,gamma)
 +
 +
                OR
 +
 +
    R=euler2dcm([alpha beta gamma])
  
−
                    R=euler2dcm([alpha beta gamma])
+
==Arguments==
  
−
where alpha, beta and gamma are Euler angles in radians. The resulting rotation matrix is to be used as follows:
+
    alpha,beta,gamma   -  Euler angles in radians (ZYZ
 +
                            active convention)
  
−
     v=R*v    (for 3x1 vectors)
+
==Outputs==
−
    A=R*A*R' (for 3x3 interaction tensors)
+
 
 +
     R                  -  direction cosine matrix
 +
 
 +
==Notes==
 +
The resulting rotation matrix is to be used as follows:
 +
 
 +
        v=R*v    (for 3x1 vectors)
 +
        A=R*A*R' (for 3x3 interaction tensors)
 +
 
 +
==See also==
 +
[[wigner.m]], [[dcm2wigner.m]], [[dcm2euler.m]], [[anax2dcm.m]], [[dcm2quat.m]], [[quat2dcm.m]]
 +
 
 +
 
 +
''Version 2.3, authors: [[Ilya Kuprov]]''

Revision as of 13:00, 26 December 2018

Converts Euler angles (ZYZ active convention) into a direction cosine matrix.

Syntax

    R=euler2dcm(alpha,beta,gamma)

                OR

    R=euler2dcm([alpha beta gamma])

Arguments

    alpha,beta,gamma   -   Euler angles in radians (ZYZ
                           active convention)

Outputs

    R                  -   direction cosine matrix

Notes

The resulting rotation matrix is to be used as follows:

        v=R*v    (for 3x1 vectors)
        A=R*A*R' (for 3x3 interaction tensors)

See also

wigner.m, dcm2wigner.m, dcm2euler.m, anax2dcm.m, dcm2quat.m, quat2dcm.m


Version 2.3, authors: Ilya Kuprov