# Euler2dcm.m

Converts Euler angles to a direction cosine matrix. Syntax:

                    R=euler2dcm(alpha,beta,gamma)

                                OR

                   R=euler2dcm([alpha beta gamma])


where alpha, beta and gamma are Euler angles in radians. The resulting rotation matrix is to be used as follows:

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