title: How do I divide the rows of a matrix by different values in MATLAB (array division)
body: <p>Lets said I have the matrix <code>M = ones(3);</code> and I want to divide each row by a different number, e.g., <code>C = [1;2;3];</code>. </p>
  
  <pre><code>1 1 1  -divide_by-&gt; 1      1   1   1
  1 1 1  -divide_by-&gt; 2  =  0.5 0.5 0.5
  1 1 1  -divide_by-&gt; 3     0.3 0.3 0.3
  </code></pre>
  
  <p>How can I do this without using loops?</p>