  Nsp (number of spikes in each channel)</span>
0018 <span class="keyword">if</span> nargin &lt; 6; error(<span class="string">'Need all input arguments'</span>); <span class="keyword">end</span>;
0019 <span class="keyword">if</span> isstruct(data); C=length(data); <span class="keyword">else</span> C=1; <span class="keyword">end</span><span class="comment">% number of channels</span>
0020 K=size(tapers,2); <span class="comment">% number of tapers</span>
0021 nfreq=length(f); <span class="comment">% numb