title: MATLAB insert value in between
body: <p>in MATLAB i wish to insert a value half way between every element in the vector</p>
  
  <p>for example</p>
  
  <pre><code>  v=[1,3,5,7,9]
  </code></pre>
  
  <p>i want to get</p>
  
  <pre><code>  v=[1,2,3,4,5,6,7,8,9]
  </code></pre>
  
  <p>is there a quick way to do this?</p>