title: Copy vector to vector in Matlab
body: <p>I have a simple question about how can I copy a vector into another. I have a vector with a length of 66x1 and then, another with a length of 2151x1. I want to copy the values from the first one in a exactly position on the other. I've tried that but it doesn't work. </p>
  
  <p>inter= 66x1
  out= 2151x1</p>
  
  <pre><code>for i=1:numel(inter)
      out(101:167)= inter(i)
  end
  </code></pre>
  
  <p>Also I've tried this:</p>
  
  <pre><code>for inter=(1:66);
      out(101:167)=inter;
  end 
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>for k= (101:167)
      out(k)=inter(1:66);
  end
  </code></pre>
  
  <p>Am I doing wrong? Thanks in advance, </p>