GPSSatellite:

Path: SC/Sensor

% Gives the location of the GPS satellites at JD.
 Choice of Earth-fixed or ECI reference frames.

 Type GPSSatellite for a demo.

--------------------------------------------------------------------------
   Forms:
   [r, v] = GPSSatellite( jD )
   [r, v] = GPSSatellite( jD, coord )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   jD            (1,1)   Julian Date
   coord         (1,:)   'ef' or 'eci' (eci is the default)

   -------
   Outputs
   -------
   r             (3,24)  Satellite locations
   v             (3,24)  Satellite velocity

--------------------------------------------------------------------------
   Reference: Kayton, M. and W. R. Fried. (1997.) "Avionics Navigation 
              Systems," John Wiley & Sons.
--------------------------------------------------------------------------