;
0040 <span class="keyword">end</span>
0041 
0042 
0043 h=waitbar(0,<span class="string">'Computing Correlation Functions...'</span>,<span class="string">'Name'</span>,<span class="string">'Time2corr'</span>);
0044 
0045 <span class="keyword">for</span> RefFileNo=1:length(RefChannel)
0046     waitbar(RefFileNo/length(RefChannel))
0047 <span class="comment">% If cross-correlations are requested, load reference channel</span>
0048     <span class="keyword">if</span> RefChannel(1) ~= 0      
0049         RefF