AnimateRE:

% Animate the evolution of the desired "safe ellipse" with the position

--------------------------------------------------------------------------
   Usage:
   [x0,aE,yA,yR,alpha] = AnimateRE( r,x0,aE,yA,yR, dMin );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r            (3,N)  Relative position in SLO frame
   x0           (1,N)  Center of along-track motion 
   aE           (1,N)  Semi-major axis of relative ellipse 
   yA           (1,N)  Cross-track offset at along-track axis crossing 
   yR           (1,N)  Cross-track offset at radial axis crossing 
   dMin          (1)   Minimum distance parameter (optional)
   dV           (1,N)  Delta-V to move to safe ellipse. Optional.

   -------
   Outputs
   -------
   NONE
--------------------------------------------------------------------------

Children:

Common: Graphics/AddView
Common: Graphics/SliderBar