title: MATLAB plot with sorted order
body: <p>I have two vectors in <a href="http://en.wikipedia.org/wiki/MATLAB" rel="nofollow">MATLAB</a>, say:</p>
  
  <pre><code>x = [1 20 3 7 10]  
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>y = [2 51 1 9 18]  
  </code></pre>
  
  <p>How can I plot <code>y</code> vs K where <code>x</code> has sorted value order (1 3 7 10 20) with their respective <code>y</code> values like the following?</p>
  
  <pre><code>x = [1 3 7 10 20]
  y = [2 1 9 18 51]
  </code></pre>