Name
CL_intervInters — Intersection of intervals
Calling Sequence
[ires] = CL_intervInters(i1,i2,[i3,...[iN]])
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)
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);