Institut de Robòtica i Informàtica Industrial

Intersection

PURPOSE ^

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:
This function is called by:

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


Institut de Robòtica i Informàtica Industrial

Generated on Fri 24-Jul-2009 12:32:50 by m2html © 2003