MATLAB: How to find the first value (in a vector) larger than a cutoff value without using for/while loops

cutoff value

For example: v=[0.2, 0.8, 0.9, 1.15, 8.2, 9.3, 7.6, 6.5, 5.2, 3.4]; cutoff=7; The answer should be 8.2.

Best Answer

v(find(v > cutoff, 1))