title: how to multiply each row with each row of another matrix elementwise in matlab?
body: <p>I have such a matrix </p>
  
  <pre><code>m1 = [ 1 2 3; 4 5 6; 1 2 3]
  m2 = [ 2 2 2];
  </code></pre>
  
  <p>and I want to multiply each row of m1 with m2 elementwise .</p>
  
  <p>So result is</p>
  
  <pre><code>result = [2 4 6; 8 10 12; 2 4 6]
  </code></pre>
  
  <p>How would I do it?</p>