FINDCLOSESTPOINT Find index of closest point in an array. INDEX = findClosestPoint(POINT, POINTARRAY) [INDEX, MINDIST] = findClosestPoint(POINT, POINTARRAY) Also returns the distance between POINT and closest point in POINTARRAY. Example pts = rand(10, 2); findClosestPoint(pts(4, :), pts) ans = 4 See also points2d, minDistancePoints, distancePoints
Package: matgeom