PlanetPosition:

Path: SC/Ephem

% The position vectors, gravitational parameters and velocity for the planets.

 The frame is heliocentric, i.e. xy-plane is the mean earth's orbital plane.
 This function uses persistent variables to store the planet elements
 obtained from Planets during the initialization call.

 You may use EITHER multiple planet IDs OR multiple dates when using this
 function, but not both.
--------------------------------------------------------------------------
   Form:
   [r, mu, v] = PlanetPosition( action, d )
     
   PlanetPosition( 'initialize', ids )
   [r, mu, v] = PlanetPosition( 'update', jD )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action    (1,:)       'initialize' or 'update'
   d         (1,n)       Julian date (days) for update or planet ids (1-9) for
                         initialize

   -------
   Outputs
   -------
   r         (3,n)       Planetary position vectors
   mu        (1,n)       Corresponding gravitational parameters
   v         (3,n)       Velocity vectors

--------------------------------------------------------------------------
   See also: Planets, SolarSys
--------------------------------------------------------------------------

Children:

Common: Time/JD2T
OrbitMiniToolbox: Support/M2Nu
SC: Ephem/Planets

Back to the SC Module page