MATLAB Function Reference    
dsearch

Search for nearest point

Syntax

Description

K = dsearch(x,y,TRI,xi,yi) returns the index of the nearest (x,y) point to the point (xi,yi). dsearch requires a triangulation TRI of the points x,y obtained from delaunay.

K = dsearch(x,y,TRI,xi,yi,S) uses the sparse matrix S instead of computing it each time:

where nxy = prod(size(x)).

See Also

delaunay, tsearch, voronoi


 drawnow dsearchn