title: Constructing a multi-dimensional array in Julia
body: <p>In MATLAB, the following syntax can be used to create 1-d matrix <code>a</code> and 2-d matrix <code>b</code>:</p>
  
  <pre><code>a = [2,3]
  b = [2,3;4,5]
  </code></pre>
  
  <p>In Julia, constructing the 1-d array <code>a</code> using the same syntax works. However, constructing the 2-d array <code>b</code> using the same syntax fails.</p>
  
  <p>Defining <code>b</code> as follows works:</p>
  
  <pre><code>b = cat(2,[2,4],[3,5])
  </code></pre>
  
  <p>Is there a syntactical shortcut for explicitly defining 2-d arrays in Julia? If so, what is it?</p>