title: Add a row to a matrix in Julia?
body: <p>How can I add a row to a matrix in Julia?</p>
  
  <p>For example,</p>
  
  <pre><code>mat = [1 2 3; 3 4 2]
  </code></pre>
  
  <p>and I want to add the row <code>x = [4 2 1]</code> at the end. I tried:</p>
  
  <pre><code>push!(mat, x)
  </code></pre>
  
  <p>but it gives an error.</p>