We develop straightforward formulas for converting back and forth between quaternion and matrix representations for rotations, reflections, and perspective projections, and we discuss the relative advantages and disadvantages of the quaternion and matrix representations for these transformations.