I have a random array of 20 numbers from 1 to 120. How do extract the first number that is more than 70?

回答 (1 件)

madhan ravi
madhan ravi 2019 年 2 月 27 日
編集済み: madhan ravi 2019 年 3 月 1 日

0 投票

array(find(array>70,1,'first'))

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

質問済み:

2019 年 2 月 27 日

編集済み:

2019 年 3 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by