How can I find the first index of an 1D-array at which all following Elements are smaller the a specific value?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Azzi Abdelmalek
2016-8-18
编辑:Azzi Abdelmalek
2016-8-18
A=[1 2 5 6 4 7 2 3 5]
b=8
id=find(A>b,1,'last')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!