MATLAB: How to rotate points on 3D coordinate systems

3d

I have some points on a 3D Cartesian coordinate system. I want to transfer it form 3D coordinate system to another system which is generated from the first one by a rotation around the x, y or z-axis by (alpha) degrees counterclockwise and clockwise and calculate the position vector in the new coordinate system after the rotation. What is the best solution?