Skip to content

nearest

geometry · scripts/geometry/nearest.m

NEAREST  Graph hop-neighbours, or nearest-neighbour indices among points.

 N = nearest(G, S, D)  nodes within hop distance D of S in graph/digraph
 IDX = nearest(P, Q)   for each row of Q, index of nearest row of P