is the result of "find" guaranteed to be sorted?
Show older comments
Are the indices returned by MATLAB's "find" function guaranteed to be sorted?
I could not find any mention of this in the "find" documentation.
Intuitively, I can't imagine that the results are not sorted - it seems like a straightforward function to implement.
But you never know...
Answers (1)
Adam
on 13 Aug 2014
0 votes
Yes, they are sorted
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!