<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2">Good morning,<br>
<br>
I discovered that using ft_databrowser & ft_rejectartifact to preprocess my EEG data, often the wrong number of trials is rejected. This is the code I am using and it inherits data resulting from ft_redefinetrial.<br>
<br>
<font face="Courier New"> cfg = [];<br>
cfg.latency = [-2 2]; <font color="808000">% period of interest</font><br>
tmpdata_small = ft_selectdata(cfg,data_segm_offsetcorr);<br>
<br>
cfg = [];<br>
cfg.layout = layout2;<br>
cfg.showlabel = 'yes';<br>
cfg.channel = 'EEG';<br>
cfg.gradscale = 0.04;<br>
cfg.continuous = 'no';<br>
<font color="808000"> % filtering only for artifact rejection</font><br>
cfg.preproc.lpfilter = 'yes';<br>
cfg.preproc.lpfreq = 40;<br>
<br>
cfg_databrowser = ft_databrowser(cfg, tmpdata_small);<br>
data_segm_offsetcorr = ft_rejectartifact(cfg_databrowser, data_segm_offsetcorr);<br>
<br>
<font face="Calibri" size="3">If I now, for example mark 10 trials in the databrowser and then run ft_rejectartifact, it tells me:
<br>
<br>
<font face="Courier New" size="2">detected 10 visual artifacts<br>
rejected 8 artifacts completely<br>
<br>
<font size="3"><font face="Calibri">Something seems to be wrong here as I clearly marked 10 artifacts (don't really care whether they are visual or not), but only 8 are removed. The problem gets worse when I call the function a second time, which is when usually
none of the marked artefacts are rejected at all.<br>
<br>
Any idea where the problem could be?<br>
<br>
Many thanks!<br>
Best,<br>
Christine</font></font></font></font> </font><br>
</font></div>
</body>
</html>