importing raw data

Marco Rotonda marco.rotonda at GMAIL.COM
Mon Oct 26 14:42:28 CET 2009


Hi there,
I'm trying to import a raw data file to perform artifacting.
The file I have is quite simple: 2 channels and only data sampled at 256.
I did the following operations:

FF = (csvread('FF.txt', 2, 0))';
data.trial{1} = FF;
data.time{1} = linspace(0,180,46080);
data.fsample=256;
data.label={'F3';'F4'};
data.cfg.trl=[1,46080,0];
cfg.continuous='yes';
cfg.trl=[1,46080,0];
cfg.channel={'F3';'F4'};
cfg2=artifact_eog(cfg,data);

but then I have the following message error:

??? Error using ==> artifact_zvalue at 202
no channels selected

Error in ==> artifact_eog at 179
   [tmpcfg, artifact] = artifact_zvalue(tmpcfg,
   data);

What I miss?

in artifact_zvalue from 197:

cfg.artfctdef.zvalue.channel =
channelselection(cfg.artfctdef.zvalue.channel, hdr.label);
sgnind        = match_str(hdr.label, cfg.artfctdef.zvalue.channel);
numsgn        = length(sgnind);

if numsgn<1
 error('no channels selected');
else
 fprintf('searching for artifacts in %d channels\n', numsgn);
end


So I added:

cfg.artfctdef.zvalue.channel={'F3';'F4'};

but I get the same error
it seems that I need the header... but I have not.
is it?

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list