<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr"><div>Dear Stephen,</div><div><br></div><div>yes, I have tried both of the suggested operations, but there is still no difference between plotting Color_C and plotting ERP. </div><div>If I inspect both these variables however, I see that they differ in the avg field of their structure. Therefore it looks like there might be a problem with ft_multiplotER. Do you see any error in my script for what concerns this function?</div><div><br></div><div>Thanks again for your answer,</div><div>Luca</div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">Il giorno mar 9 apr 2019 alle ore 10:27 Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@gmail.com">stephen.whitmarsh@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Dear Luca,</div><div><br></div><div>1) Have you tried not using a baseline correction, just to make sure that a baseline correction is applied at all? (if not, that would explain the lack of differences between different baselines :-)).<br></div><div>2) Have you tried replacing cfg.channel = {'all'}; with cfg.channel = 'all';?</div><div><br></div><div>HTH,</div><div>Stephen<br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Tue, 9 Apr 2019 at 10:13, Luca Moretti <<a href="mailto:moretti.l1991@gmail.com" target="_blank">moretti.l1991@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div dir="ltr"><div>Dear Fieldtrippers,</div><div><br></div><div>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><br></div><div>inputfile = (strcat('Subject_2_clean.mat'));<br>load (inputfile);<br>layout = 'easycapM1';</div><div><br>%% Calculating ERP<br></div><div><br></div><div>cfg = [];<br>cfg.trials = find(data_clean_2.trialinfo==60);<br>Color_C = ft_timelockanalysis(cfg, data_clean_2);</div><div><br></div><div>%% Plotting<br><br></div><div>cfg = [];<br>cfg.baseline = [-.3 0];<br>cfg.channel = {'all'};<br>cfg.parameter = 'avg';<br>ERP = ft_timelockbaseline(cfg, Color_C);</div><div><br></div><div>figure<br>cfg = [];<br>cfg.layout = layout;<br>cfg.interactive = 'yes';<br>cfg.showoutline = 'yes';<br>ft_multiplotER(cfg, ERP)</div><div><br></div><div>%%</div><div><br></div><div>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><br></div><div>Can someone find something wrong with my code?</div><div><br></div><div>Many thanks!</div><div>Luca</div><div><br></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" rel="noreferrer">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" rel="noreferrer">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" rel="noreferrer">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" rel="noreferrer">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>