<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Poppy,<div class=""><br class=""></div><div class="">did you do some sort of baseline correction or condition contrast?</div><div class="">Otherwise, what you see is simply the 1/f distribution in the power spectrum.</div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">Julian</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">________________<br class="">Prof. Dr. Julian Keil<br class=""><br class="">Biological Psychology<br class="">Olshausenstrasse 62 - R. 306<br class="">24118 Kiel, Germany<br class=""><br class="">+49 - 0431 - 880 - 4872<br class=""><a href="http://www.biopsych.uni-kiel.de/en" class="">http://www.biopsych.uni-kiel.de/en</a><br class=""><br class=""></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Am 10.01.2019 um 05:57 schrieb Poppy Watson <<a href="mailto:popwatson@hotmail.com" class="">popwatson@hotmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="NL" class="">Dear fieldtrippers,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="NL" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I’m replicating a study that used fieldtrip for TF analysis (and has some lovely single electrode TF plots for each experimental condition). I’ve been running ft_freqanalysis using the following settings.<o:p class=""></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg = [];</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.trials = trialsToUse;<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: forestgreen;" class="">% this is a vector of trial numbers</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.method =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'mtmconvol'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.output =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'pow'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.channel =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'eeg'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.taper =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'hanning'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.foi = 2:2:30;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New"; color: forestgreen;" class="">%cfg.t_ftimwin = 4 ./ cfg.foi;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.t_ftimwin = ones(length(cfg.foi),1).*0.5;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.toi = -1.25:0.10:0.25; <span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: forestgreen;" class="">% 100 ms sliding time window</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class=""> </span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">The output and stats etc seem to all make sense but my concern is that when I plot the data e.g. from one electrode (collapsed across the whole pp group)– I don’t get beautiful fuzzy TF graphs – instead I get very blocky/stripy figures like the attached where there doesn’t seem to be any smoothing/bleeding across different frequencies. I’ve tried playing around with the cfg.foi as well as the length of the time window and sliding window (cfg.t_ftimwin and cfg.toi) but the results always look very blocky rather than all warm and fuzzy (i.e. as seen in raw-TFdata-of-single-electrode images in various publications). Am I missing some smoothing parameters??<o:p class=""></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">This is my singleplot_TFR code:<o:p class=""></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg = [ ] ;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.channel =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'FCz'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.xlim = [-1 0];<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: forestgreen;" class="">%before stimulus appears</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.ylim = [2 20];<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: forestgreen;" class="">% [8 12] only alpha</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.zlim = [0 15];</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.maskstyle =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'saturation'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">cfg.masknans =<span class="Apple-converted-space"> </span></span><span style="font-size: 13pt; font-family: "Courier New"; color: rgb(160, 32, 240);" class="">'yes'</span><span style="font-size: 13pt; font-family: "Courier New";" class="">;</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 13pt; font-family: "Courier New";" class="">ft_singleplotTFR(cfg, allPPdata_suc_collapsed_high);</span><span style="font-size: 12pt; font-family: "Courier New";" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Many Thanks<o:p class=""></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">P. Watson<span style="font-size: 12pt;" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div></div><span id="cid:B9D3ADAA-5119-401D-9E9E-5173B9C302E6@fritz.box"><example.png></span><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: rgb(149, 79, 114); text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://doi.org/10.1371/journal.pcbi.1002202" style="color: rgb(149, 79, 114); text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div></blockquote></div><br class=""></div></body></html>