08-Oct-2025 11:13:05 nearest_neighbor_test(): MATLAB/Octave version 6.4.0 Test nearest_neighbor(). test01(): A basic nearest neighbor search. P: candidate points: 0.9065 0.5636 0.1160 0.6211 0.9918 0.3258 0.8202 0.4664 0.9747 0.7309 X(I): Nearest neighbors 0.916559 0.553525 0.090363 0.562509 0.957206 0.313766 0.853204 0.471281 0.865128 0.761137 Graphics saved as "test01.png" test02(): Find nearest neighbors from a subset of full list. Nearest X to X[2,4,10]. I = 19 10 4 Nearest X to any X. I = Columns 1 through 16: 8 19 9 10 4 12 18 20 5 4 15 14 8 15 11 15 Columns 17 through 20: 1 7 2 8 test03(): Find four nearest neighbors. Index of four nearest neighbors to 3 points I = 2 19 16 18 45 33 26 42 28 40 6 48 Graphics saved as "test03.png" test04(): Find all neighbors within a specific radius. I = 0 16 16 0 10 10 0 47 47 0 40 33