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

Réponses (1)

madhan ravi
madhan ravi le 27 Fév 2019
Modifié(e) : madhan ravi le 1 Mar 2019

0 votes

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

Catégories

En savoir plus sur Matrices and Arrays dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by