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)
Show older comments
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
0 Comments
Answers (1)
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')
See Also
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!