title: Max function and brackets in Matlab
body: <p>Why is it that the code:</p>
  
  <blockquote>
    <blockquote>
      <p>[a,b] = max([1,2,3;4,5,6;7,8,9])</p>
    </blockquote>
  </blockquote>
  
  <p>produces
  a =</p>
  
  <pre><code> 7     8     9
  </code></pre>
  
  <p>b =</p>
  
  <pre><code> 3     3     3
  </code></pre>
  
  <p>Should a be the max number in each of the rows so 5,6,9 and b be the max number in each of the columns so 7,8,9?</p>