<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 Luca,<div class=""><br class=""></div><div class="">could you be a bit more precise in your description?</div><div class="">By saying that "figure Always turn out the same for each electrode“, do you mean that the ERP is identical at each electrode?</div><div class="">In that case, I suggest going back a step and checking whether the signal at each electrode is identical. That would indicate a problem earlier in your pipeline, e.g. that you overwrite the single electrodes with a common signal.</div><div class=""><br class=""></div><div class="">Or do you mean, that the signal does not change from Color_C to ERP? </div><div class="">In that case, I suggest inspecting Color_C in close detail, and computing the mean of the baseline interval by hand. If that value is close to zero, you can’t expect drastic changes from the baseline correction.</div><div class=""><br class=""></div><div class="">Hope that helps,</div><div class=""><br class=""></div><div class="">Julian</div><div 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=""><br class=""></div>
</div>
<div><blockquote type="cite" class=""><div class="">Am 09.04.2019 um 10:11 schrieb Luca Moretti <<a href="mailto:moretti.l1991@gmail.com" class="">moretti.l1991@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Dear Fieldtrippers,</div><div class=""><br class=""></div><div class="">I have a problem concerning the calculation of ERPs with ft_timelockbaseline. After I have preprocessed the data (re-referenced, filtered, cleaned from artifact), this is what I have done:</div><div class=""><br class=""></div><div class="">inputfile = (strcat('Subject_2_clean.mat'));<br class="">load (inputfile);<br class="">layout = 'easycapM1';</div><div class=""><br class="">%% Calculating ERP<br class=""></div><div class=""><br class=""></div><div class="">cfg = [];<br class="">cfg.trials = find(data_clean_2.trialinfo==60);<br class="">Color_C = ft_timelockanalysis(cfg, data_clean_2);</div><div class=""><br class=""></div><div class="">%% Plotting<br class=""><br class=""></div><div class="">cfg = [];<br class="">cfg.baseline = [-.3 0];<br class="">cfg.channel = {'all'};<br class="">cfg.parameter = 'avg';<br class="">ERP = ft_timelockbaseline(cfg, Color_C);</div><div class=""><br class=""></div><div class="">figure<br class="">cfg = [];<br class="">cfg.layout = layout;<br class="">cfg.interactive = 'yes';<br class="">cfg.showoutline = 'yes';<br class="">ft_multiplotER(cfg, ERP)</div><div class=""><br class=""></div><div class="">%%</div><div class=""><br class=""></div><div class="">My problem is that it doesn't matter what kind of baseline period I am chosing, the figure Always turn out the same for each electrode. I have even tried to set the baseline to the Whole trial period, but the figure I get from plotting individual channels from the multiplot is Always the same.</div><div class=""><br class=""></div><div class="">Can someone find something wrong with my code?</div><div class=""><br class=""></div><div class="">Many thanks!</div><div class="">Luca</div><div class=""><br class=""></div></div></div>
_______________________________________________<br class="">fieldtrip mailing list<br class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">https://doi.org/10.1371/journal.pcbi.1002202<br class=""></div></blockquote></div><br class=""></div></body></html>