searchsorted
searchsorted(a, x, [by=
Returns the range of indices of a
which compare as equal to x
according to the order specified by the by
, lt
and rev
keywords, assuming that a
is already sorted in that order. Returns an empty range located at the insertion point if a
does not contain values equal to x
.
Examples
See Also
find, findfirst, findin, findlast, findmin, findn, findnext, findnz, findprev, rsearch, rsearchindex, searchsorted, searchsortedfirst, searchsortedlast, sort, sort!, sortcols, sortperm, sortperm!,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.