PlotPlanetOrbit:

Path: SC/Visualization

% Plot a 3D orbit around a planet in the ECI or planet fixed frame.
 Planet must be written with the 1st name as a capital letter. If the .mat file
 does not exist it will not draw the planet. Adds time tags to the trajectory
 at suitable intervals. For example, for a planet-fixed plot around Mars:

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

 For an ECI plot around Earth:

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

 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)
   jD        (1,:)    Julian date array (days)
   objName   {n}      Object names
   planet    (1,:)    Planet name, corresponding to a mat-file
   eCIFlag   (1,1)    If true plot in ECI coordinates (default false)

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

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

Children:

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
SC: BasicOrbit/RVFromKepler
SC: Ephem/ECIToPlanet
SC: Visualization/PlotPlanet

Back to the SC Module page