<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I noticed a problem with artifact
viewer:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>when I perform artifact rejection with
cfg.interactive='yes', I get the following error message:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> ???
Subscript indices must either be real positive integers or
logicals.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Error in
==> fieldtrip\private\artifact_viewer>read_and_plot at
85<BR> plot(xval(sel),
zval(sel), 'b');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Error in
==> fieldtrip\private\artifact_viewer at
41<BR>
read_and_plot(h);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Error in
==> artifact_zvalue at
254<BR>
artifact_viewer(cfg, cfg.artfctdef.zvalue, zsum, artval, zindx);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Error in
==> artifact_eog at
126<BR> [tmpcfg, artifact]
= artifact_zvalue(tmpcfg);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Error in
==> rejectartifact at
197<BR> cfg =
feval(sprintf('artifact_%s', cfg.artfctdef.type{type}), cfg);</FONT></DIV>
<DIV><FONT face=Arial size=2>
<BR>The problem comes from the variable sel that is used for indexing which
contains fractions: <BR>>> sel =
trlpadsmp:(length(data)-trlpadsmp);
<BR>>> plot(xval(sel), zval(sel), 'b');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>cfg.artfctdef.eog.trlpadding default = 0.5<BR>if
the sampling frequency is not a nice round number (e.g. 625)<BR>>>
trlpadsmp = artcfg.trlpadding*hdr.Fs; will result in an error</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Second, is it possible to reject pieces of data
with rejectartifact that are deviant over a group of channels? For example, if I
wanted to use the<BR>temporal channels to throw out eye blinks, can I specify a
group of channels and reject data pieces on the basis of some sort of
composite<BR>z-score instead of checking data channel by channel?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks, greetings Jasper</FONT></DIV></BODY></HTML>