title: Matlab: Add vectors not in the same length to a matrix
body: <p>Is it possible to automatically add vectors that are not in the same length together for a matrix?</p>
  
  <p>i.e:</p>
  
  <pre><code>a = [1 2 3 4]
  b = [1 2]
  </code></pre>
  
  <p>How can I make C to be:</p>
  
  <pre><code>c = [1 2 3 4 ; 1 2 0 0]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>c = [1 2 3 4 ; 1 2 NaN NaN]
  </code></pre>
  
  <p>or something like that</p>
  
  <p>Thanks</p>