<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      try using the upper-case abbreviation 'EEG'.<br>
      <br>
      Groetjes<br>
      Jörn<br>
      <br>
      On 10/17/2013 4:02 PM, Hwee Ling Lee wrote:<br>
    </div>
    <blockquote
cite="mid:CABG7z0TTeGavH+c40u7zZT=8QwgFq240ad5Zva0BiPpSX48Cyw@mail.gmail.com"
      type="cite">
      <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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" 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 class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel:    +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </body>
</html>