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

回答(1 个)

Azzi Abdelmalek
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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by