[FieldTrip] error using ft_artifact_zvalue

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Thu Oct 17 16:28:54 CEST 2013


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 list
> fieldtrip at donders.ru.nl
> http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131017/5544b5a0/attachment-0002.html>


More information about the fieldtrip mailing list