MATLAB: Finding minimum value of array with certain property

arrayMATLAB

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.

Best Answer

You can use the find command.