Extracting a certain value

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

Answers (1)

madhan ravi
madhan ravi on 27 Feb 2019
Edited: madhan ravi on 1 Mar 2019
array(find(array>70,1,'first'))

Categories

Asked:

on 27 Feb 2019

Edited:

on 1 Mar 2019

Community Treasure Hunt

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

Start Hunting!