comment">% Helper function called by coherency matrix computations.</span>
0003 <span class="comment">%</span>
0004 <span class="comment">% Usage: [C,phi,S12,confC,phierr,Cerr]=cohmathelper(J,err,Nsp)</span>
0005 <span class="comment">% Inputs:</span>
0006 <span class="comment">% J   : Fourier transforms of data</span>
0007 <span class="comment">% err : [0 p] or 0 for no errors; [1 p] for theoretical confidence level,</span>
0008 <span class="comment">%       [2 p] for Jackknife (p - p value)</span>
