[FieldTrip] error using ft_artifact_zvalue

Hwee Ling Lee hweeling.lee at gmail.com
Thu Oct 17 16:30:51 CEST 2013


thanks to all, for helpful suggestions!



On 17 October 2013 16:28, "Jörn M. Horschig" <jm.horschig at donders.ru.nl>wrote:

>  Hi,
>
> try using the upper-case abbreviation 'EEG'.
>
> Groetjes
> Jörn
>
>
> On 10/17/2013 4:02 PM, Hwee Ling Lee wrote:
>
>  Hi!
>
>  I'm using the command ft_artifact_zvalue, and would like to use the
> interactive mode.
>
>  However, I keep getting an error message:
>
>  Error using ft_artifact_zvalue (line 216)
> no channels selected.
>
>  I wonder if I require to specify the channels manually. Thanks!
>
>  Here's my script:
>  clear all; close all; clc;
> warning off;
>
>  fs = filesep;
>
>  % loading eeg files for fieldtrip
> cfg = [];
> cfg.dataset = 'D:\Data\DBSmechanisms_v2\export\gudin-stimrec.eeg';
> cfg.event = 'D:\Data\DBSmechanisms_v2\export\gudin-stimrec.vmrk';
>
>  % loading stimulus information
> cfg.trialfun = 'my_trialfun_name'; % self-made function located in
> D:\New_Scripts_2013\my_trialfun_name.m
> cfg.trialdef.pre = 1.0;
> cfg.trialdef.post = 1.0;
> cfg = ft_definetrial(cfg);
>
>  [data] = ft_preprocessing(cfg); % loading eeg data into memory
>
>  % to filter 50 Hz 'humming' of electric power supply
> cfg.bsfiler = 'yes';
> cfg.bsfreq = [49 51; 99 100; 149 151];
> [data] = ft_preprocessing(cfg); % loading eeg data into memory
>
>  % automatic artifact rejection
>  cfg.artfctdef.zvalue.channel = 'eeg';
> cfg.artfctdef.zvalue.cutoff = 0.5;
> cfg.artfctdef.zvalue.trlpadding = 0;
> cfg.artfctdef.zvalue.fltpadding = 0;
> cfg.artfctdef.zvalue.artpadding = 0;
>
>  [cfg, artifact] = ft_artifact_zvalue(cfg, data);
>
>
> _______________________________________________
> fieldtrip mailing listfieldtrip at donders.ru.nlhttp://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
>
> --
> 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: jm.horschig at donders.ru.nl
> Tel:    +31-(0)24-36-68493
> Web: http://www.ru.nl/donders
>
> Visiting address:
> Trigon, room 2.30
> Kapittelweg 29
> NL-6525 EN Nijmegen
> The Netherlands
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>



-- 
=================================================
Dr. rer. nat. Lee, Hwee Ling
Postdoc
German Center for Neurodegenerative Diseases (DZNE) Bonn

Email 1: hwee-ling.lee<at>dzne.de
Email 2: hweeling.lee<at>gmail.com

https://sites.google.com/site/hweelinglee/home

Correspondence Address:
Ernst-Robert-Curtius Strasse 12, 53117, Bonn, Germany
=================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131017/e70e078b/attachment-0002.html>


More information about the fieldtrip mailing list