Path: Orbit/RHSOrbit
% Right hand side for a simple Cartesian orbit.
External disturbances may be passed in via the data structure.
--------------------------------------------------------------------------
Form:
d = RHSOrbit; % data structure
xDot = RHSOrbit( x, t, d )
--------------------------------------------------------------------------
------
Inputs
------
x (6,1) Orbital state [r;v] in km and km/s
t (1,1) Time (unused)
d (.) Data structure
.mu (1,1) Gravitational constant
.a (3,1) Acceleration (km/s2)
.states {6} State names
.x0 (6,1) Initial state
-------
Outputs
-------
xDot (6,1) d[r;v]/dt
--------------------------------------------------------------------------
Math: Linear/Mag
Back to the Orbit Module page