<div dir="ltr">thanks to all, for helpful suggestions!<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 October 2013 16:28, "Jörn M. Horschig" <span dir="ltr"><<a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      try using the upper-case abbreviation 'EEG'.<br>
      <br>
      Groetjes<br>
      Jörn<div><div class="h5"><br>
      <br>
      On 10/17/2013 4:02 PM, Hwee Ling Lee wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <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>
      <fieldset></fieldset>
      <br>
      </div></div><div class="im"><pre>_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </div></blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour 
Centre for Cognitive Neuroimaging
Radboud University Nijmegen 
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: <a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>
Tel:    <a href="tel:%2B31-%280%2924-36-68493" value="+31243668493" target="_blank">+31-(0)24-36-68493</a>
Web: <a href="http://www.ru.nl/donders" target="_blank">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </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"><div><br></div>-- <br><div dir="ltr">
=================================================<br>Dr. rer. nat. Lee, Hwee Ling<br>Postdoc<br>German Center for Neurodegenerative Diseases (DZNE) Bonn<br><br>Email 1: hwee-ling.lee<at><a href="http://dzne.de" target="_blank">dzne.de</a><br>
Email 2: hweeling.lee<at><a href="http://gmail.com" target="_blank">gmail.com</a><div><br></div><div><a href="https://sites.google.com/site/hweelinglee/home" target="_blank">https://sites.google.com/site/hweelinglee/home</a><br>
<br>Correspondence Address:<br>Ernst-Robert-Curtius Strasse 12, 53117, Bonn, Germany<br>=================================================<br></div></div>
</div>