title: Set matrix elements that are in another matrix
body: <p>I have a matrix <code>Path</code> that contains points (x,y) and it's 100*2 in size.I also have another matrix <code>Image</code> that is 500*500.
  I want to set all the pointsin <code>Image</code>that exist in <code>Path</code> to zero
  I tried to use</p>
  
  <pre><code> arrayfun(@(x) find(segmentedimage==x),path,'UniformOutput',false)
  </code></pre>
  
  <p>and it returned 100x2 cell but i dont know what to do after that.
  I guess i have to do something like </p>
  
  <pre><code>segmentedimage(path(:,:))=0;
  </code></pre>
  
  <p>Can any one tell me how to set all points to 0 without loops.</p>