<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=DE>Dear FieldTrip-Community,<o:p></o:p></span></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal>In general the results seem plausible since I would expect the prominent 5-10Hz power.<o:p></o:p></p><p class=MsoNormal>The sampling rate of my data is 1kHz and it contains 30 trials with a length of 3s each.<o:p></o:p></p><p class=MsoNormal>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?<br><br><o:p></o:p></p><p class=MsoNormal>        cfg              = [];<o:p></o:p></p><p class=MsoNormal>        cfg.output       = 'pow';<o:p></o:p></p><p class=MsoNormal>        cfg.channel      = 'all';<o:p></o:p></p><p class=MsoNormal>        cfg.method       = 'wavelet';<o:p></o:p></p><p class=MsoNormal>        cfg.foi          = 1:1:48;                        <o:p></o:p></p><p class=MsoNormal>        cfg.t_ftimwin    = 20./cfg.foi; <o:p></o:p></p><p class=MsoNormal>        cfg.toi          = 1:0.001:4;                     <o:p></o:p></p><p class=MsoNormal>        cfg.width      = 3;<o:p></o:p></p><p class=MsoNormal>        freq_data = ft_freqanalysis(cfg, data);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><img width=467 height=361 style='width:4.8593in;height:3.7604in' id="Grafik_x0020_1" src="cid:image002.jpg@01D67593.6370FDC0" alt="Ein Bild, das Computer enthält. Automatisch generierte Beschreibung"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you very much and best regards<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Daniel<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>