title: interp function in python like matlab
body: <p>Could someone explain how to use an interpolation function on an existing array, in python as the one exists in matlab ?</p>
  
  <p>example:</p>
  
  <p>x =</p>
  
  <pre><code> 1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  </code></pre>
  
  <blockquote>
    <blockquote>
      <p>interp(x,2)</p>
    </blockquote>
  </blockquote>
  
  <p>ans =</p>
  
  <pre><code>1.0000
  1.4996
  2.0000
  2.4993
  3.0000
  3.4990
  4.0000
  4.4987
  5.0000
  5.4984
  6.0000
  6.4982
  7.0000
  7.4979
  8.0000
  8.4976
  9.0000
  9.4973
  10.0000
  10.4970
  </code></pre>
  
  <p>I'd like a function in python which does exactly this, i.e. adds more points keeping the original intact.</p>