            drawnow;
        <span class="keyword">end</span>
        c = c + 1;
    <span class="keyword">end</span>

<span class="keyword">end</span>
</pre><pre class="codeoutput">Error using determine_photon_stats (line 22)
Not enough input arguments.
</pre><p class="footer"><br>
      Published with MATLAB&reg; 7.13<br></p></div><!--
##### SOURCE BEGIN #####
function [counts_per_photon offset] = determine_photon_stats(data,fit_offset,display_progress)

    if nargin < 2
        fit_offset = true;
  