![]() |
IntersectionPURPOSE
Intersection between interval matrices.
SYNOPSIS
function Iout=Intersection(I1,I2)
DESCRIPTION
Intersection between interval matrices. Intersection of two interval matrices, I1, I2. If one of the intervals is empty, an error is triggered. CROSS-REFERENCE INFORMATION
This function calls:
SOURCE CODE
0001 function Iout=Intersection(I1,I2) 0002 % Intersection between interval matrices. 0003 % 0004 % Intersection of two interval matrices, I1, I2. 0005 % If one of the intervals is empty, an error is triggered. 0006 0007 Iout.lower=max(I1.lower,I2.lower); 0008 Iout.upper=min(I1.upper,I2.upper); 0009 Iout.r=I1.r; 0010 Iout.c=I1.c; 0011 Iout=class(Iout,'Interval'); 0012 0013 |