determine if points lie in a box
0001 function [pts] = inbox(box,x,y) 0002 % determine if points lie in a box 0003 0004 pts = find( x > box(1) & x < box(2) & y >box(3) & y < box(4)); 0005 0006