Cyl2Cart:

--------------------------------------------------------------------------
   Converts cylindrical position coordinates to cartesian.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [x, y, z] = Cyl2Cart( r, theta, z )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r                     (:,:)  Either r or [r;theta;phi]
   theta                 (:)    theta (angle in xy-plane)
   z                     (:)    z 

   -------
   Outputs
   -------
   x                     (:,:)  Either x or [x;y;z]
   y                     (:)    y
   z                     (:)    z

--------------------------------------------------------------------------