<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin:0;">Dear List,</div><div style="margin:0;"><br></div><div style="margin:0;">When I use the following code to define trials and preprocess my data, I got no trialinfo in my data structure. </div><div style="margin:0;">I need the trialinfo to extract different condition epochs in the following ERP analysis and I have no idea how to fix it. </div><div style="margin:0;">Hope anyone can help.</div><div style="margin:0;"><br></div><div style="margin:0;"><div style="margin:0;">cfg = [];</div><div style="margin:0;">cfg.dataset             = 'raw_data/sample_data.set';</div><div style="margin:0;">cfg.trialfun           = 'ft_trialfun_general'; </div><div style="margin:0;">cfg.trialdef.eventtype = 'trigger';</div><div style="margin:0;">cfg.trialdef.eventvalue = {'11', '12', '13', '14'};</div><div style="margin:0;">cfg.trialdef.prestim = 0.2; </div><div style="margin:0;">cfg.trialdef.poststim = 0.8;</div><div style="margin:0;">cfg      = ft_definetrial(cfg);</div><div style="margin:0;"><br></div><div style="margin:0;"><div style="margin:0;">data        = ft_preprocessing(cfg);</div><div><br></div><div>And the result in data structure:</div><div><img src="cid:3cd1c95f$1$17428853db4$Coremail$liyy90$163.com" orgwidth="423" orgheight="228" data-image="1" style="width: 278.1px; height: 150px; border: none;"></div></div></div><div style="margin:0;"><br></div><div style="margin:0;">Many thanks.</div><div style="margin:0;">Yan</div></div>