Euler rate of ZYZ sequence and its relation with angular velocity

How the Euler rate th, psi, and phi can be obtained from the equation below? What can relate the Euler rate with angular velocity?

th= -0.2*cos(2*pi*t); % angle 1

psi= 0.2*sin(2*pi*t); % angle 2

T=A*(cos(th)-cos(psi))+B*cos(th)*sin(psi);

S=A*sin(th)*sin(psi)-B*cos(th)+C*cos(psi);

phi(k)= atan(-T/S); ^ angle 3

R=Rot('y',th)*Rot('x',psi)*Rot('z',phi); % Rotation matrix

Thank you

submitted by /u/MSEOUL
[link] [comments]