I have values saved as pi=[5 10 15].
And I have another values saved in puk, which is 401×1 double.
I need to find values in puk which are nearest to the values of pi, and as result I need to have indexes of that values in puk.
So I do not know how to search for nearest values in puk? And how to get indexes of these values?