PlotPlanetOrbit:

Path: SC/Visualization

% Plot a 3D orbit around a planet in the ECI or planet fixed frame.
 Adds time tags to the trajectory at suitable intervals. Planet must be
 match a mat-file on the path. If the .mat file does not exist it will not
 draw the planet. For example, for a planet-fixed plot around Mars:

   PlotPlanetOrbit( [rECI;vECI], jD, 'Spacecraft', 'Mars' )

 For a time-tagged ECI plot around Earth:

   PlotPlanetOrbit( [rECI;vECI], jD, 'Spacecraft', 'Earth', true )

 For a simple multi-spacecraft ECI plot:

   PlotPlanetOrbit( {r1,r2} )

 Type PlotPlanetOrbit for a Mars planet-fixed demo.
--------------------------------------------------------------------------
   Form:
   PlotPlanetOrbit( xECI, jD, objName, planet, eCIFlag )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   xECI      (6*n,:)  [r;v;r;v;...] ECI frame orbits (km,km/s)
          or
              {n}     Cell array of state matrices for multiple satellites
   jD        (1,:)    Julian date array (days)
   objName   {n}      Object names, if empty Spacecraft 1, etc
   planet    (1,:)    Planet name, corresponding to a mat-file ('mars')
   eCIFlag   (1,1)    If true plot in ECI coordinates (default false)

   -------
   Outputs
   -------
   None

--------------------------------------------------------------------------
   See also ECIToPlanet, PlotPlanet, TimeLabl
--------------------------------------------------------------------------

Children:

SC: BasicOrbit/RVFromKepler
SC: Ephem/ECIToPlanet
SC: Visualization/PlotPlanet
Common: Database/Constant
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/TimeLabl
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Time/Date2JD
Common: Time/JD2Array

Back to the SC Module page