title: How to get the mean of rows of a matrix in Octave?
body: <pre><code>&gt;&gt; a = [2,3,4;6,7,8]
  a =
  
     2   3   4
     6   7   8
  
  &gt;&gt; mean(a)
  ans =
  
     4   5   6
  </code></pre>
  
  <p>where <code>[4 5 6]</code> is the mean for each column</p>
  
  <p>How can I get the mean for each row?</p>
  
  <p>In my example, I would expect <code>[3;7]</code></p>