1) How to find the matrix location of the nearest point?
Nearest[{{2,1},{2,3},{3,4},{4,5},{5,6}.......{4,9}},{3,5}]
2)if I have a original set of points
ospts={{2,1},{2,3},{3,4},{4,5},{5,6}.......{4,9}},
and a target set of points tspts={{1,2}....{3,5}}. For each target point I like to find the nearest original point and its position within the ospts. How should I do it?
Thanks.
Xiaxing