I have a matrix which contains values and I wish to find the index of the top n minimum values.
n
I use the following code for finding the minimum most value:
Or without Intersect in the other answer
[sorted,I] = sort(Result(:)); [r,c] = ind2sub(size(Result),I(1:10)); %//Change 10 to any other required value