Clear Filters
Clear Filters

How can I find the first index of an 1D-array at which all following Elements are smaller the a specific value?

1 view (last 30 days)
I'm searching for the first index of an 1D-array at which all following Elements are smaller the a specific value.
Kind regards, Levin

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 18 Aug 2016
Edited: Azzi Abdelmalek on 18 Aug 2016
A=[1 2 5 6 4 7 2 3 5]
b=8
id=find(A>b,1,'last')

Categories

Find more on Resizing and Reshaping Matrices 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!