Watch this Author's files
Very nice routine!
Is it reasonable to look for more efficient method for the particular case when the points to query at can be assumed to lie on a cartesian grid? E.g. imagine
in = inpoly(p,node);
with p = {X, Y}, where [X Y] = meshgrid(x,y)
Thanks!
Contact us at files@mathworks.com