Find index of first greater than or equal values of a vector in another one
<p>I have two sorted vectors <code>x</code> and <code>y</code>.  For each <code>y(i)</code>, I want to find the first index <code>j</code> such that <code>y(i) &gt;= x(j)</code>.</p>

<p>Example:</p>

<pre><code>x = [1 3 5 7 9 11 13 15]
y = [3 4 5 9 10 11]
result = [2 2 3 5 5 6]
</code></pre>

<p>What is the most efficient way to do that? </p>