title: how can I add a vector to a matrix in matlab?
body: <p>How can I add a vector to a matrix in Matlab, in a manner that the i's index of the vector would be added to all the members in the i's row?</p>
  
  <p>for example:</p>
  
  <pre><code>A = [1 2 3;
       4 5 6;
       6 7 8]
  v = [1;
       2;
       3]
  </code></pre>
  
  <p>the required result is:</p>
  
  <pre><code>[2 3 4;
   6 7 8;
   9 10 11]
  </code></pre>
  
  <p>Thanks a lot.</p>