title: Matlab: multiple Assignment for vectors without Loop
body: <p>is there any possibility to assign multiple values for a matrix from an another vector without a loop?</p>
  
  <p>For example:</p>
  
  <p>I have a matrix filled with zeros:</p>
  
  <pre><code>matrix=zeros(2);
  matrix =
  
   0     0      
   0     0      
  </code></pre>
  
  <p>Now i have an another vector where the first two columns are the positions and the third column are the values wich belongs to the corresponding positions.</p>
  
  <pre><code> values=[2 1 4;1 2 2]
   values =
  
          Posx PosY   Value
          2     1     4
          1     2     2
  </code></pre>
  
  <p>The result should look like:</p>
  
  <pre><code>matrix = 
               0     2  &lt;-- matrix(values(2,1),values(2,2))=values(2,3) ;     
               4     0  &lt;-- matrix(values(1,1),values(1,2))=values(1,3);
  </code></pre>