title: Applying Threshold to Matrix Within Cell Array
body: <p>I have a cell array called output. Each cell within output contains a 1024 x 1024 matrix. I would like to threshold each matrix so that elements below a given value are set to NaN.</p>
  
  <p>I tried using:</p>
  
  <pre><code>output(output &lt; 100000) = NaN; 
  </code></pre>
  
  <p>However, I feel that this is the wrong approach. Intuitively, I want to use a for loop, however, I don't think that will be the most efficient method possible.</p>
  
  <p>Thoughts? Suggestions?</p>
  
  <p>Thanks :)</p>