s for output.
      %
      output = [ r; colat; lons; rec(1,:); rec(2,:); rec(3,:)];
      txt    = sprintf( '%10.4f %10.4f %10.4f %10.4f %10.4f %10.4f\n', output);
      disp( txt )

      %
      % It's always good form to unload kernels after use,
      % particularly in MATLAB due to data persistence.
      %
      <a href="cspice_kclear.html">cspice_kclear</a>

   MATLAB outputs:

        r        colat       lons         x         y           z
     --------   --------   --------   --------   -------