TreeInit:

Path: SC/Dynamics

% Create the tree data structure

   Since version 2.
--------------------------------------------------------------------------
   Form:
   [x, y] = TreeInit( body, r, v, gGOn )
--------------------------------------------------------------------------

   -----
   Input
   -----
   body            (:,:) Body data structure
   r               (3,1) Orbit position vector
   v               (3,1) Orbit velocity vector
   gGOn            (1,1) If true gravity gradient is on

   ------
   Output
   ------
   x               (:,:) Tree data structure
   y               (:,1) State vector [attitude;rate]

--------------------------------------------------------------------------

Children:

Math: Linear/DupVect

Back to the SC Module page