![]() |
UnionPURPOSE
Hull of two interval matrices.
SYNOPSIS
function Iout=Union(I1,I2)
DESCRIPTION
Hull of two interval matrices. Produces the hull of two interval matrices I1, I2, i.e., the interval matrix that includes the two inputs. It accepts mixed real/interval matrices as inputs. Real matrices are treated as punctual interval matrices. If the two inputs are real, Lib/Union is used instead. See also Lib/Union. CROSS-REFERENCE INFORMATION
This function calls:
SOURCE CODE
0001 function Iout=Union(I1,I2) 0002 % Hull of two interval matrices. 0003 % 0004 % Produces the hull of two interval matrices I1, I2, i.e., the interval 0005 % matrix that includes the two inputs. 0006 % It accepts mixed real/interval matrices as inputs. Real matrices 0007 % are treated as punctual interval matrices. 0008 % If the two inputs are real, Lib/Union is used instead. 0009 % 0010 % See also Lib/Union. 0011 0012 if isa(I1,'double') 0013 Iout.lower=min(I1,I2.lower); 0014 Iout.upper=max(I1,I2.upper); 0015 Iout.r=I2.r; 0016 Iout.c=I2.c; 0017 else 0018 if isa(I2,'double') 0019 Iout.lower=min(I1.lower,I2); 0020 Iout.upper=max(I1.upper,I2); 0021 else 0022 Iout.lower=min(I1.lower,I2.lower); 0023 Iout.upper=max(I1.upper,I2.upper); 0024 end 0025 Iout.r=I1.r; 0026 Iout.c=I1.c; 0027 end 0028 Iout=class(Iout,'Interval'); 0029 |