inbox.m 133 Bytes
Newer Older
Pierre Cazenave's avatar
Pierre Cazenave committed
1 2 3 4 5 6
function [pts] = inbox(box,x,y)
% determine if points lie in a box

pts = find( x > box(1) & x < box(2) & y >box(3) & y < box(4));