function output = tbs_tmseeg_preprocess(data) cfg = []; cfg.detrend = 'yes'; cfg.demean = 'yes'; cfg.baselinewindow = [-0.5,-0.05]; cfg.channel = {'all','-Marker', '-ECG', '-EOG_VERT', '-EOG_LAT'}; cfg.reref = 'yes'; cfg.refchannel = {'all'}; cfg.refmethod = 'avg'; output = ft_preprocessing(cfg,data); end