FUNCTION REFERENCE
nearestNeighbor
Find the closest triangulation vertex to each query point.
Find the closest triangulation vertex to each query point.
Syntax
[ID, D] = nearestNeighbor(DT, Q)Each row of Q contains a 2-D or 3-D query point. ID indexes the rows of DT.Points and D contains Euclidean distances.
Example
DT = delaunayTriangulation([0 0; 1 0; 0 1]); [id, d] = nearestNeighbor(DT, [0.1 0.2])Example
DT = delaunayTriangulation([0 0 0; 1 0 0; 0 1 0; 0 0 1]); [id, d] = nearestNeighbor(DT, [0.1 0.1 0.1])These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.