CheckAlignment:

--------------------------------------------------------------------------
   Post simulation analysis. First load a data file from a DFF simulation into
   the Plotting Tool, then export the data to the workspace. Call this function
   to plot a time history of the body vector of each spacecraft that is aligned
   with a specified vector in Hill's frame.

   Since version 7.
--------------------------------------------------------------------------
   Steps:
   >> sim = TestOrbAttControlSimStruct;  % use any simulation struct you want
   >> d = DFFSimulation( sim );          % run the simulation
   >> PlottingTool('load sim data',d);   % load the sim data to the Plotting Tool
   >> PlottingTool('export');            % export data to the workspace
   >> uB = CheckAlignment( [0;0;1] );    % analyze the alignment
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   uH            (3,1)    Unit vector in Hills frame (default is +y direction)
   scIndex        (1)     Index of the spacecaft you wish to analyze (default is all)

   -------
   Outputs
   -------
   uB            {nSC,1}  Cell array of time histories of unit body-frame
                             vectors aligned with specified Hills frame vector

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

Children:

Common: Graphics/NewFig
Common: Quaternion/QForm
FormationFlying: Coord/QHillsToBody