<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear list,
<div><br>
</div>
<div>I am currently working on implementing an automatic artifact rejection using ft_artifact_zvalue.</div>
<div>It already works quite nicely for detecting jumps and EOG artifacts. However, when trying to detect high frequency noise I am often getting edge effects. I am already using filterpadding for the eog artifacts were it does a good job, but for the higher
 frequencies it suddenly almost only detects artifacts at the outermost trials (first and last) even though there are also obvious artifacts in different trials. The data is previously demeaned and filtered using a notch filter and a bandpass filter from 1-100
 Hz. These are my settings for the artifact detection now:</div>
<div><br>
</div>
<div>
<div>cfg            = [];</div>
<div>cfg.trl        = temptrl; % all trials in this case</div>
<div>                    </div>
<div>cfg.artfctdef.zvalue.channel     = channel{ch}; % single channel</div>
<div>cfg.artfctdef.zvalue.cutoff      = 3;</div>
<div>cfg.artfctdef.zvalue.fltpadding  = 0.1;</div>
<div><br>
</div>
<div>cfg.artfctdef.zvalue.bpfilter    = 'yes';</div>
<div>cfg.artfctdef.zvalue.bpfilttype = 'but';</div>
<div>cfg.artfctdef.zvalue.bpfreq      = [70 100];</div>
<div>cfg.artfctdef.zvalue.bpfiltord   = 2;</div>
<div>cfg.artfctdef.zvalue.hilbert     = 'yes';</div>
<div>cfg.artfctdef.zvalue.boxcar      = 0.2;</div>
<div><span style="font-size: 10pt;"> </span></div>
<div>[cfg, artifact] = ft_artifact_zvalue(cfg, data);</div>
</div>
<div><br>
</div>
<div>I already tried changing the settings around but that didn't do much good. Any help would be appreciated and please tell me if I am doing anything terribly wrong!</div>
<div><br>
</div>
<div>Best,</div>
<div>Julia</div>
</div>
</body>
</html>