CostMatrixRows:

Path: FormationFlying/Guidance

% Given the team goals, determines the starting row (a) and ending row (b)
   of the cost matrix associated with the supplied target state index.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [a,b] = CostMatrixRows( teamGoals, index );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   teamGoals     (.)    Team data structure with fields:
   index         (1)    Target state index

   -------
   Outputs
   -------
   a             (1)    Starting row of the cost matrix
   b             (1)    Ending row of the cost matrix

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

Children:

FormationFlying: DataStructures/Constraints_Structure
FormationFlying: DataStructures/Geometry_Structure
FormationFlying: DataStructures/TeamGoals_Structure

Back to the FormationFlying Module page