WrapSegments:

Path: CubeSat/Utilities

 
--------------------------------------------------------------------------
   Separate a wrapped vector into a series of segments in cells.

   Since version 8.
--------------------------------------------------------------------------
   Form:
   [y,k] = WrapSegments( x, tol )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x       (1,:)    Vector of data points
   tol     (1,1)    Jump tolerance. 
                    If x(k+1)-x(k) > tol, the segment ends at x(k).
   
   -------
   Outputs
   -------
   y       {1,n}    Cell array of segments. 
                    Each segment "i" is 1 x m(i) array and sum(m)=n
   k       {1,n}    Cell array of index values so that: y{j} = x( k{j} );

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

Back to the CubeSat Module page