<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Dear EEGLAB users,<br><br></div>In my efforts to both understand, and also analyse a particular dataset I'm working on, I'd like to get as close to the output for the ersp of the "newtimef" function using the matlab "cwt" function.<br><br></div>I'm getting pretty close by just using:<br></div>        trial_wavelet(:, :, nT) = cwt(...<br>            double(EEG.data(nCh, :, nT)), ...<br>            'amor', EEG.srate);<br><br></div>And then identical normalisation parameters that are in newtimef (baseline correction etc).<br><br></div>However its not quite right. In particular it seems that higher frequencies are not quite given the same treatment. Are there settings etc that would basically reproduce the newtimef function?<br><br>As a background: The idea of high-frequency suppression by a slow wave in sleep is interesting, and when I explore the ERSP using newtimef I see the slow power increase followed by high frequency suppression of equal (normalised) magnitude. However with the cwt function I see the slow power, but there is basically no decrease in the higher range.<br><br></div>Any help here would be greatly appreciated.<br><br></div>Take care,<br></div>Armand Mensen<br></div>Postdoc Researcher<br></div>University Hospital Bern, Switzerland<br></div>