M-File Help: eul2r | View code for eul2r |
Convert Euler angles to rotation matrix
R = eul2r(phi, theta, psi, options) is an SO(3) orthonornal rotation matrix (3x3) equivalent to the specified Euler angles. These correspond to rotations about the Z, Y, Z axes respectively. If phi, theta, psi are column vectors (Nx1) then they are assumed to represent a trajectory and R is a three-dimensional matrix (3x3xN), where the last index corresponds to rows of phi, theta, psi.
R = eul2r(eul, options) as above but the Euler angles are taken from the vector (1x3) eul = [phi theta psi]. If eul is a matrix (Nx3) then R is a three-dimensional matrix (3x3xN), where the last index corresponds to rows of RPY which are assumed to be [phi,theta,psi].
'deg' | Angles given in degrees (radians default) |
eul2tr, rpy2tr, tr2eul, SO3.eul
© 1990-2014 Peter Corke.