ind is the indices of the unsorted data. For example if out(3) corresponds to the value of the 3rd smallest distance, and ind(3) corresponds to the index in that that value had in the original unsorted data. Distance(ind(3)) -> out(3)
In other words, ind is the order the the data items had to be arranged in to in order to get the sorted values.
Best Answer