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

Respuestas (1)

madhan ravi
madhan ravi el 27 de Feb. de 2019
Editada: madhan ravi el 1 de Mzo. de 2019

0 votos

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

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Feb. de 2019

Editada:

el 1 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by