title: How to determine where a number is printing from in MATLAB?
body: <p>In MATLAB, how do you tell where in the code a variable is getting output?</p>
  
  <p>I have about 10K lines of MATLAB code with about 4 people working on it. Somewhere, someone has dumped a variable in a MATLAB script in the typical way:</p>
  
  <pre><code>foo
  </code></pre>
  
  <p>Unfortunately, I do not know what variable is getting output. And the output is cluttering out other more important outputs.</p>
  
  <p>Any ideas?</p>
  
  <p>p.s. Anyone ever try overwriting Standard.out? Since MATLAB and Java integration is so tight, would that work?  A trick I've used in Java when faced with this problem is to replace Standard.out with my own version.</p>