title: Finding those pixels that meet a specific criterion
body: <p>Attached is an image of <code>cameraman.tif</code> that comes with matlab but after applying <code>[fuzzy c-means]</code> <a href="https://i.stack.imgur.com/l6XsC.jpg" rel="nofollow noreferrer">1</a></p>
  
  <p><img src="https://i.stack.imgur.com/l6XsC.jpg" alt="enter image description here"></p>
  
  <p>Also, as an output from the algorithm is <code>u2</code> (degree of membership of a pixel). See <a href="https://www.dropbox.com/l/XUEyZHZhZmHXqqxX" rel="nofollow noreferrer">matlab.mat</a> for this data.</p>
  
  <p>What I want to do is select the pixel(s) from the image attached whose <code>u2</code> value is <code>equal to 1</code>.</p>
  
  <p>Any ideas on how this can be done in <code>matlab</code>?</p>
  
  <p>Thanks.</p>