span>
0078 <span class="keyword">if</span> err(1)==0;
0079      [C,phi,S12]=cohmathelper(J,err);
0080 <span class="keyword">elseif</span> err(1)==1;
0081      <span class="keyword">if</span> fscorr==0;
0082        [C,phi,S12,confC,phistd]=cohmathelper(J,err);
0083     <span class="keyword">else</span>
0084        [C,phi,S12,confC,phistd]=cohmathelper(J,err,Nsp);
0085     <span class="keyword">end</span>;
0086 <span class="keyword">elseif</span> err(1)==2;
0087      <span class="keyword">if</span> fscorr==0;