MATLAB Answers

is the result of "find" guaranteed to be sorted?

5 views (last 30 days)
Matthew
Matthew on 13 Aug 2014
Answered: Adam on 13 Aug 2014
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...

  0 Comments

Sign in to comment.

Answers (1)

Adam
Adam on 13 Aug 2014
Yes, they are sorted

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags