Function: pointInRectangle

CALL:

b = pointInRectangle(rect, point)

DESCRIPTION:

Determine if points lie inside or on the boundary of a rectangle

INPUT:

rect any
rectangle [left bottom width height]
point any
[Nx2] array with the (x,y) coordinates of N points

OUTPUT:

b any
[Nx1] boolean array, b(i) is true if point(i,:) lies in or on the boundary of the rectangle