![]() |
IsInsidePURPOSE
Checks if a point is inside an interval.
SYNOPSIS
function ii=IsInside(I,v)
DESCRIPTION
Checks if a point is inside an interval. Returns true if a point, v, is inside the given interval, I. Real matrix and interval matrices are also valid as inputs. CROSS-REFERENCE INFORMATION
This function calls:
SOURCE CODE
0001 function ii=IsInside(I,v) 0002 % Checks if a point is inside an interval. 0003 % 0004 % Returns true if a point, v, is inside the given interval, I. 0005 % 0006 % Real matrix and interval matrices are also valid as inputs. 0007 0008 ii=(size(find(I.lower>v),1)==0)&&(size(find(I.upper<v),1)==0); |