[FieldTrip] error using ft_artifact_zvalue

Constantino Méndez Bértolo constantino.mendezbertolo at ctb.upm.es
Thu Oct 17 16:21:03 CEST 2013


I think "cfg.artfctdef.zvalue.channel" should be a SINGLE channel (use
labels or ordinal numbers)

cheers,
T


2013/10/17 Hwee Ling Lee <hweeling.lee at gmail.com>

> 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
>



-- 
Constantino Méndez-Bértolo
Laboratorio de Neurociencia Clínica, Centro de Tecnología Biomédica (CTB)

Parque Científico y Tecnológico de la UPM, Campus de Montegancedo

28223 Pozuelo de Alarcón, Madrid, SPAIN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20131017/6a19a42c/attachment.html>


More information about the fieldtrip mailing list