Rotation about Z axis
R = rotz(theta) is an SO(3) rotation matrix (3x3) representing a rotation of theta radians about the z-axis.
R = rotz(theta, 'deg') as above but theta is in degrees.
rotx, roty, angvec2r, rot2
Robotics Toolbox for MATLAB © 1990-2014 Peter Corke.