Finding the first index in the datasets with a gap
Show older comments
Hi there,
I have some data, which is attached, and I'd like to try to find the first index in the datasets. So I write some code, which I've attached, but I'm having trouble finding some indexes.
For example, there is a gap between finding the number 4 and finding the first index of 4 after this gap (figure). I also like to repeat the process for other numbers.
Any suggestions would be greatly appreciated.

Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!