title: What does %#ok<SAGROW> comment mean in MATLAB?
body: <p>I've encountered many MATLAB codes which have a <code>%#ok&lt;SAGROW&gt;</code> comments. This comment is used  in different circumstances and I can't figure it out what it means.</p>
  
  <p>As an example:</p>
  
  <pre><code>i = 1; 
  flag = true;
  for l = 1:k
      while(flag==true)
          if(probs(i)~=0)
              leaves(l).val = i-1; %#ok&lt;*SAGROW&gt;
              leaves(l).zero = '';
              leaves(l).one = '';
              leaves(l).prob = probs(i);
              i = i + 1; 
              flag = false;
          else
              i = i+1;
              flag = true;
          end
      end
  flag =true;
  end
  </code></pre>
  
  <p>There are other references to this comment too, for instace:</p>
  
  <ul>
  <li><a href="http://www.codeproject.com/Questions/151765/answer.aspx" rel="noreferrer">http://www.codeproject.com/Questions/151765/answer.aspx</a></li>
  <li><a href="http://www.scribd.com/doc/69869075/EEE-554-Matlab-Solutions" rel="noreferrer">http://www.scribd.com/doc/69869075/EEE-554-Matlab-Solutions</a></li>
  <li><a href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/321047" rel="noreferrer">http://www.mathworks.com/matlabcentral/newsreader/view_thread/321047</a></li>
  <li><a href="http://www.nd.edu/~jrunkle1/ballis_problem.m" rel="noreferrer">http://www.nd.edu/~jrunkle1/ballis_problem.m</a></li>
  </ul>