title: Julia pre-allocate array vs. MATLAB pre-allocate array
body: <p>In MATLAB, pre-allocation of arrays that would otherwise change size during iterations, is recommended. On the assumption the recommendation also ges for Julia, I would like to know how to do that. </p>
  
  <p>In MATLAB, the following code pre-allocates a 5 by 10 array:</p>
  
  <pre><code>A = nan(5,10)
  </code></pre>
  
  <p>How would the same be obtained in Julia?</p>