RE2SLO:

% Compute the SLO-frame state associated with a relative ellipse.
 SLO = spacecraft local orbit, equivalent to LVLH frame

-------------------------------------------------------------------------------
   Usage:
   xSLO = RE2SLO( x, z, x0, aE, yA, yR, n );
-------------------------------------------------------------------------------

   ------
   Inputs
   ------
   x             (1)   Along-track position
   z             (1)   Radial position
   x0            (1)   Center of along-track motion
   aE            (1)   Semi-major axis of relative ellipse
   yA            (1)   Cross-track offset at forward along-track axis crossing
   yR            (1)   Cross-track offset at high radial axis crossing
   n             (1)   Mean orbit rate [rad/s]

   -------
   Outputs
   -------
   xSLO          (1)   SLO-frame state on relative ellipse

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