title: MATLAB - how do I find the first index where value is greater than threshold
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3593717/given-a-vector-a-1-2-3-2-4-5-and-an-element-x-3-in-vector-a-how-to-find-the">Given a vector a=[1,2, 3.2, 4, 5] and an element x=3 In vector a, how to find the exact entry which is bigger than x?</a>  </p>
  </blockquote>
  
  
  
  <p>Let's say a[] is a sorted vector. How do I find the first(smallest) index ix such that a(ix) > threshold?</p>