Depends on what the "surfaces" are. In the case of a rectangle, or other polygon, you would probably use INPOLYGON.
For more complicated things, you would probably use inequalities describing the region
f(x,y)<=0
to disqualify points.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!