I often need to do searches in various portions of a vector but I don't want the indices based on the portion but on the whole vector. Is there a more formal way than doing this:
find(y(5:10))+5-1
find(y(5:10))+5-1