title: Matlab: Block Tridiagonal with Non-Square Vectors
body: <p>I'm trying to create a diagonal matrix using the following matrix as the diagonal</p>
  
  <pre><code>base = [a b c d e f 0;
          0 g h i j k l];
  </code></pre>
  
  <p>I need the resulting matrix to look like this...</p>
  
  <pre><code>[a b c d e f 0 0 0;
   0 g h i j k l 0 0;
   0 0 a b c d e f 0;
   0 0 0 g h i j k l];
  </code></pre>
  
  <p>except it needs to be "n" elements tall</p>
  
  <p>I have tried using the <code>kron</code> function, but it shifts each consecutive row too many elements to the right.</p>
  
  <p>How can I accomplish what I need in a way where I can select <code>n</code> arbitrarily?</p>