title: applying norm function to rows of matrix - Matlab
body: <p>I have a 3 columns, n rows matrix:</p>
  
  <pre><code>[ a,b,c;
    d,e,f;
    g,h,i; ]
  </code></pre>
  
  <p>I want to apply the norm function to each of the rows, and get a <code>1xn</code> matrix containing the norms:</p>
  
  <pre><code>[ norm([a,b,c]);
    norm([d,e,f]);
    norm([g,h,i]); ]
  </code></pre>
  
  <p>I could do this with a for-loop, but is there a better way?</p>