 [tapers,pad,Fs,fpass,err,trialave,params]=getparams(params)">getparams</a>(params); 
0062 [N,Ntr,NC]=size(data);
0063 <span class="keyword">if</span> Ntr==1; error(<span class="string">'cannot compute second spectrum with just one trial'</span>); <span class="keyword">end</span>;
0064 dt=1/Fs; <span class="comment">% sampling interval</span>
0065 T=N*dt; <span class="comment">% length of data in seconds</span>
0066 E=0:win:T-win; <span class="comment">% fictitious event triggers</span>
0067 datatmp=<