Find first index that exceeds condition
1 view (last 30 days)
Show older comments
Commented: Jonathan Cheong on 25 Feb 2021
To elaborate and ensuring my questions are specific, I have a dataset and their index:
Say I would like to find the index and value of the 1st value > 2 after value (8)
Which means my desired output would look like this:
Normally, I would have a table of starting indices, but this is just a random sample to keep it short.
How do I code this?
KALYAN ACHARJYA on 25 Feb 2021
"I would like to find the index and value of the 1st value > 2 after value (8)"
Answer would be 7 only, can you verify again?
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!