Convert rotation matrix to homogeneous transformation
converts
the rotation matrix, tform = rotm2tform(rotm)rotm, into a homogeneous
transformation matrix, tform. The input rotation
matrix must be in the premultiply form for rotations. When using the
transformation matrix, premultiply it with the coordinates to be transformed
(as opposed to postmultiplying).