Extracting a certain value
Show older comments
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
on 27 Feb 2019
Edited: madhan ravi
on 1 Mar 2019
array(find(array>70,1,'first'))
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!