According to my book
Rotations through an angle $\theta$ about the $x$, $y$, and $z$ axes are performed using the following transformation matrices.
For example, $$ R_x(\theta) = \left[ \begin{matrix} 1& 0 & 0 \\\ 0& \cos\theta &-\sin\theta\\\ 0& \sin\theta &\cos\theta \end{matrix}\right] $$
Ry0= | cos0 0 sin0 0|
| 0 1 0 0|
| -sin0 0 cos0 0|
| 0 0 0 1|
Rz0= | cos0 -sin0 0 0 |
| sin0 cos0 0 0|
| 0 0 1 0|
| 0 0 0 1|
And I just need to put the angle in it no matter which rotate about axis? After that, how can I get a $4\times 4$ matrix?
Thank you
