[FieldTrip] Time-frequency analysis with Morlet wavelets

daniel.strahnen at uni-ulm.de daniel.strahnen at uni-ulm.de
Tue Aug 18 19:11:34 CEST 2020


Dear FieldTrip-Community,

 

I am trying to implement the time-frequency analysis tutorial onto my own
data, however I am encountering the edge effects in the figure below.

In general the results seem plausible since I would expect the prominent
5-10Hz power.

The sampling rate of my data is 1kHz and it contains 30 trials with a length
of 3s each.

The code I used is posted below. Does anyone have an idea on how to get a
good spectrogram in the time edges in the beginning and in the end of the
trials?



        cfg              = [];

        cfg.output       = 'pow';

        cfg.channel      = 'all';

        cfg.method       = 'wavelet';

        cfg.foi          = 1:1:48;                        

        cfg.t_ftimwin    = 20./cfg.foi; 

        cfg.toi          = 1:0.001:4;                     

        cfg.width      = 3;

        freq_data = ft_freqanalysis(cfg, data);

 



 

Thank you very much and best regards

 

Daniel

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200818/4d48b7b3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 32537 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200818/4d48b7b3/attachment.jpg>


More information about the fieldtrip mailing list