Finding minimum value of array with certain property

2 views (last 30 days)
Hello,
I have an array that I am using as the y values for a plot of mine. I want to identify the index where the y value first passes a certain value and the y value where it drops below a certain value. Is there a simple way I can do this? Essentially, I want to find the lowest index with a certain value and the index above which a certain value is never again reached.

Accepted Answer

the cyclist
the cyclist on 16 Jul 2018
You can use the find command.

More Answers (0)

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!