What is the fastest way to find the index of a value in a sorted vector in MATLAB? That is, is there a quick find(vector == myNumber, 1, 'first') when the vector is sorted?
I have a large matrix (200,000 x 4) of locations, each of which has a unique integer identifier written in the first column. I want to find the correct location of a known identifier, but thousands of searches can find me a little.
optimization matlab
Steve
source share