     S12(:,ch2,ch1)=S12(:,ch1,ch2);
0057           <span class="keyword">if</span> errtype==2 
0058              <span class="keyword">if</span> nargin&lt;3;
0059                  [conf,phie,Ce]=<a href="coherr.html" class="code" title="function [confC,phistd,Cerr]=coherr(C,J1,J2,err,trialave,numsp1,numsp2)">coherr</a>(abs(C12),J1,J2,err,trialave);
0060              <span class="keyword">else</span>
0061                  [conf,phie,Ce]=<a href="coherr.html" class="code" title="function [confC,phistd,Ce