title: Effect of whitespace with complex number definition
body: <p>I understood that whitespace in Matlab expressions was purely cosmetic however I discovered this and I don't understand what's happening. Any ideas?</p>
  
  <pre><code>&gt;&gt; [1+i]
   ans =
     1.0000 + 1.0000i
  &gt;&gt; [1 +i] 
  ans =
     1.0000 + 0.0000i   0.0000 + 1.0000i   &lt;&lt; ????
  &gt;&gt; [1 + i] 
  </code></pre>
  
  <p>(I'm on 2016a)</p>
  
  <p>EDIT:
  Thanks for the responses.</p>
  
  <p>I realise it's easier to see what's happening when looking at non complex numbers:</p>
  
  <pre><code>&gt;&gt; [2-1]
  ans =
       1
  &gt;&gt; [2 - 1]
  ans =
       1
  &gt;&gt; [2 -1]
  ans =
       2    -1
  </code></pre>
  
  <p>But the same parsing rules applied to complex numbers could lead undesired consequences for the unaware.</p>
  
  <p>EDIT 2:
  I fully understand the logic of all the above but I'm not sure I'm happy with a mix'n'match approach of whitespace and commas for separators if it can lead to something horrible like this ..</p>
  
  <pre><code>&gt; &gt;&gt; [1+2,3+4] ans =
  &gt;      3     7
  &gt; &gt;&gt; [1 +2,3+4] ans =
  &gt;      1     2     7
  </code></pre>