<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<p>Dear Filedtrip community,</p>
<p><br>
</p>
<p>I have EEG data from an EGI system and I would like to manually mark the epochs that contain movement artifacts. With ft_databrowser one can theoretically mark artifacts on both continuous and segmented data. But the problem is, I cannot make it work. I
use this code:</p>
<p><br>
</p>
<p></p>
<div><i>cfg=[];</i></div>
<div><i>cfg.continuous = 'no';</i></div>
<div><i>cfg.preproc.lpfilter = 'yes'; </i></div>
<div><i>cfg.preproc.lpfreq = 30;</i></div>
<div><i>cfg.viewmode = 'vertical';</i></div>
<div><i>cfg.layout = lay;</i></div>
<div><i>cfg.artfctdef.muscle.artifact=[];</i></div>
<div><i>%manual_artifacts = </i><span style="font-size: 12pt;"><i>ft_databrowser(cfg, data_epoched);</i></span></div>
<div><br>
</div>
<p></p>
<p>And I get this error:</p>
<p></p>
<div><i>Error using zeros</i></div>
<div><i>Size inputs must be integers.</i></div>
<div><i><br>
</i></div>
<div><i>Error in convert_event>artifact2artvec (line 179)</i></div>
<div><i>artvec = zeros(length(artifact), endsample);</i></div>
<div><i><br>
</i></div>
<div><i>Error in convert_event (line 103)</i></div>
<div><i> obj = artifact2artvec(obj,endsample);</i></div>
<div><i><br>
</i></div>
<div><i>Error in ft_databrowser (line 502)</i></div>
<div><i>artdata.trial{1} = convert_event(artifact, 'boolvec', 'endsample', datendsample); % every artifact is a "channel"</i></div>
<div><i><br>
</i></div>
<div><i>Error in Script3 (line 268)</i></div>
<div><i>ft_databrowser(cfg, data_epoched);</i></div>
<div><i><br>
</i></div>
<div>Is there a way to mark artifacts in ft_databrowser on segmented data? </div>
<div><br>
</div>
Thank you!
<p></p>
<p>Best,</p>
<p>Cristina Florea</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
</div>
</div>
</div>
</body>
</html>