Quantcast
Channel: MATLAB Central Newsreader - tag:"find"
Viewing all articles
Browse latest Browse all 55

Use find in range of indices

$
0
0
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

Viewing all articles
Browse latest Browse all 55

Trending Articles