<div>Dear all:</div>
<div> I calculate the cross spectral density matrix and my data from rest. I want do beta-band activity(14-30Hz).so I use a center frequency of about 22 Hz.we select a time window of 0.5s.I do this as follow:</div>
<div> cfg = []; <br>cfg.toilim = [0.5 1]; <br>dataP = ft_redefinetrial(cfg, data_org);<br></div>
<div> cfg = [];<br> cfg.method = 'mtmfft';<br> cfg.output = 'powandcsd';<br> cfg.tapsmofrq = 8;<br> cfg.foilim = [22 22];<br> freqP = ft_freqanalysis(cfg, dataP);</div>
<div> </div>
<div>And i got this wrong message</div>
<div> </div>
<div>??? Error using ==> dpss at 45<br>Time-bandwidth product NW must be less than N/2.</div>
<div>Error in ==> ft_specest_mtmfft>double_dpss at 303<br>tap = dpss(double(a), double(b), varargin{:});</div>
<div>Error in ==> ft_specest_mtmfft at 115<br> tap =<br> double_dpss(ndatsample,ndatsample*(tapsmofrq./fsample))';<br> <br>Error in ==> ft_freqanalysis at 526<br> [spectrum,ntaper,foi] = ft_specest_mtmfft(dat, time,<br>
'taper', cfg.taper, options{:}, 'feedback', fbopt);</div>
<div> </div>
<div>thanks for your attention.</div>
<div>best,</div>
<div>mengtongxiao</div>