<div dir="ltr"><div>I think "cfg.artfctdef.zvalue.channel" should be a SINGLE channel (use labels or ordinal numbers)<br></div><div><br></div><div>cheers,</div><div>T</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/10/17 Hwee Ling Lee <span dir="ltr"><<a href="mailto:hweeling.lee@gmail.com" target="_blank">hweeling.lee@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div dir="ltr"><div>Hi!</div><div><br></div><div>I'm using the command ft_artifact_zvalue, and would like to use the interactive mode.</div><div><br></div><div>However, I keep getting an error message:</div>

<div><br></div><div>Error using ft_artifact_zvalue (line 216)</div><div>no channels selected.</div><div><br></div><div>I wonder if I require to specify the channels manually. Thanks!</div><div><br></div><div>Here's my script:</div>

<div><div>clear all; close all; clc;</div><div>warning off;</div><div><br></div><div>fs = filesep;</div><div><br></div><div>% loading eeg files for fieldtrip</div><div>cfg = [];</div><div>cfg.dataset = 'D:\Data\DBSmechanisms_v2\export\gudin-stimrec.eeg';</div>

<div>cfg.event = 'D:\Data\DBSmechanisms_v2\export\gudin-stimrec.vmrk';</div><div><br></div><div>% loading stimulus information</div><div>cfg.trialfun = 'my_trialfun_name'; % self-made function located in D:\New_Scripts_2013\my_trialfun_name.m</div>

<div>cfg.trialdef.pre = 1.0;</div><div>cfg.trialdef.post = 1.0;</div><div>cfg = ft_definetrial(cfg);</div><div><br></div><div>[data] = ft_preprocessing(cfg); % loading eeg data into memory</div><div><br></div><div>% to filter 50 Hz 'humming' of electric power supply</div>

<div>cfg.bsfiler = 'yes';</div><div>cfg.bsfreq = [49 51; 99 100; 149 151];</div><div>[data] = ft_preprocessing(cfg); % loading eeg data into memory</div><div><br></div><div>% automatic artifact rejection</div><div>

cfg.artfctdef.zvalue.channel = 'eeg';</div><div>cfg.artfctdef.zvalue.cutoff = 0.5;</div><div>cfg.artfctdef.zvalue.trlpadding = 0;</div><div>cfg.artfctdef.zvalue.fltpadding = 0;</div><div>cfg.artfctdef.zvalue.artpadding = 0;</div>

<div><br></div><div>[cfg, artifact] = ft_artifact_zvalue(cfg, data);</div></div></div>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><br>-- <br><div><font>Constantino Méndez-Bértolo<br>
</font></div><div><font>Laboratorio de Neurociencia Clínica,</font><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> Centro de Tecnología Biomédica (CTB)</span></font></div>
<p dir="ltr" style="text-align:justify;margin-top:0pt;margin-bottom:0pt"><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Parque Científico y Tecnológico d</span></font><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">e la UPM, </span></font><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Campus de Montegancedo</span></font></p>
<p dir="ltr" style="text-align:justify;margin-top:0pt;margin-bottom:0pt"><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">28223 Pozuelo de</span></font><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> Alarcón, Madrid, SPAIN</span></font></p>
<p dir="ltr" style="text-align:justify;margin-top:0pt;margin-bottom:0pt"><br></p><p dir="ltr" style="text-align:justify;margin-top:0pt;margin-bottom:0pt"><font><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><img src="https://docs.google.com/a/ctb.upm.es/uc?id=0B975KkJxc3ZdOGI2ODg4OTItYTYwNC00MDY4LTk0YzQtZDQzYzUwZjQwMWYx&export=download&hl=es" height="40" width="131"></span></font></p>

</div>