locate.fid function

Returns the index locations that match vector fid within data vector.