Path: Orbit/Visualization
% Plot a planet-fixed orbit track in 2D or 3D.
Converts the input inertial positions to planet-fixed using ECIToPlanet.
Has a built-in demo showing a Mars orbit in both 3D and 2D.
--------------------------------------------------------------------------
Form:
OrbTrack( r, jD, gType, planet, hFig )
--------------------------------------------------------------------------
------
Inputs
------
r (3,:) ECI position vectors (km) or
(1,6) elements
jD (:) Julian dates
gType (1,:) '2d' or '3d' Default is '3d'
planet (1,:) Any planet in the database
hFig (1,:) Figure handle
-------
Outputs
-------
none
--------------------------------------------------------------------------
See also ECIToPlanet, Map, PlotPlanet, JD2Array, RVOrbGen
--------------------------------------------------------------------------