Name

CL_intervUnion — Union of intervals

Calling Sequence

   [ires] = CL_intervUnion(i1,i2,[i3,...[iN]])
   
   

Description

  • This function computes the interval(ires) resulting of the union of the vectors of intervals i1,i2,...iN.

    Note : You can give only one interval i1, and it will compute union of intervals inside i1.

  • Last update : 28/08/2009

Parameters

i1:

vector of intervals [start ; end] (2xN)

i2:

vector of intervals [start ; end] (2xM)

in:

vector of intervals [start ; end] (2xP)

ires:

interval resulting of the union of intervals i1,i2...,iN (2xQ)

See also

CL_intervInters, CL_intervInv

Authors

CNES - DCT/SB

Examples

i1=[ [1;3] , [5;6] , [10;12]];
i2=[ [2;4] , [5.5;5.7] , [5.6;15]];
ires = CL_intervUnion(i1,i2);