image thumbnail
from Eular angles GUI by Maxim Vedenyov
Eular angles visualization and connection with axis-angle rotation.

an=matrices(phi,theta,psi)
function an=matrices(phi,theta,psi)
% calculate rotation matricies

% RE=R(z,alpha)*R(x,beta)*R(z,gamma)
% RE=R(z,phi)*R(x,theta)*R(z,psi)

cph=cos(phi);
sph=sin(phi);

ct=cos(theta);
st=sin(theta);

cps=cos(psi);
sps=sin(psi);

Mph=[cph -sph 0;
     sph cph  0;
     0   0    1];

Mt=[1   0   0;
     0  ct  -st;
     0  st  ct];
 
Mps=[cps -sps 0;
     sps cps  0;
     0   0    1];
 
an={Mph,Mt,Mps};


Contact us at files@mathworks.com