title: Octave / Matlab: Extend a vector making it repeat itself?
body: <p>Is there a way to extend a vector by making it repeat itself?</p>
  
  <pre><code>&gt;v = [1 2];
  &gt;v10 = v x 5; %x represents some function. Something like "1 2" x 5 in perl
  </code></pre>
  
  <p>Then v10 would be:</p>
  
  <pre><code>&gt;v10
       1 2 1 2 1 2 1 2 1 2
  </code></pre>
  
  <p>This should work for the general case, not just for [1 2]</p>