Name

CL_intervInters — Intersection of intervals

Calling Sequence

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

Description

  • This function computes the intervals (ires) resulting of the intersection of the intervals i1,i2,...iN (minimum 2).

    Note : intervals inside each vector of intervals iN must not have common parts to begin with (intersection of intervals inside iN must be equal to zero)

  • 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 intersection of intervals i1,i2...,iN (2xQ)

See also

CL_intervUnion, CL_intervInv

Authors

CNES - DCT/SB

Examples

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

i1=[ [1;3] , [5;6] , [10;12]];
i2=[ [2;4] , [5.5;5.7] , [5.8;15]];
i3=[ [1.1;1.2] , [3.5;7] , [11;20]];
ires = CL_intervInters(i1,i2,i3);