Name
CL_intervInv — "Inversion" of intervals
Calling Sequence
[ires] = CL_intervInv(i1,i2)
Description
-
This function computes the interval(ires) resulting of the "inversion" of the intervals inside i2 to the interval i1.
Interval i1 is a single interval containing all of i2 intervals
Note : intervals inside i2 must not have common parts to begin with
(intersection of intervals inside i2 must be equal to zero). You can achieve that by using CL_intervUnion(i2)

- Last update : 28/08/2009
Parameters
- i1:
interval [start ; end] (2x1)
- i2:
vector of intervals [start ; end] (2xM)
- ires:
interval resulting of the union of intervals i1,i2...,iN (2xQ)
Examples
i1=[ 0 ; 20 ];
i2=[ [2;4] , [5.5;5.7] , [6.6;15]];
ires = CL_intervInv(i1,i2);