Apologies for not being more clear. y is a matrix of variable dimension. When I mentioned point 34, 72, or 124 I was referring to the indexes. For example.
point 3 = [-1,3907 0,6324 0,76023]
point 4 = [-1,4093 0,6363 0,73788]
point 5 = [-1,4140 0,6371 0,71772]
According to knnsearch, the nearest neighbor of point 3 is point 4. The nearest neighbor of point 4 is point 5.