title: Concatenate different length vectors
body: <p>I am having difficulty concatenating vectors in MATLAB.</p>
  
  <pre><code>A = [1
       2
       3]
  
  B = [6
       7
       8
       9
       10]
  
  Desired result:
  
  C = [1
       2
       3
       6 
       7                
       8
       9
       10]
  </code></pre>
  
  <p>where the sizes of <code>A</code> and <code>B</code> are different in every iteration of my script and I want to form the concatenated resulting vector, <code>C</code>, which has a dynamic size.</p>
  
  <p>This is what I have tried:</p>
  
  <p><img src="https://i.stack.imgur.com/QBnpR.png" alt="matlab snapshot"></p>