<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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>