AW: [FIELDTRIP] importing raw data

Marco Rotonda marco.rotonda at GMAIL.COM
Mon Oct 26 17:20:12 CET 2009


So I need eog channels other than the 2 I have?


On 26/ott/2009, at 15.18, Nina wrote:

> Hi Marco,
> you might want to try:
>
> cfg.artfctdef.eog.channel
> = {your EOG channel(s)};
>
> Nina
>
> Von: FieldTrip
> discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] Im Auftrag von
> Paolo Toffanin
>
> Gesendet: Montag, 26. Oktober 2009
> 15:09
>
> An: FIELDTRIP at NIC.SURFNET.NL
>
> Betreff: Re: [FIELDTRIP] importing
> raw data
>
> Did you try including also eye channels into the
> analysis?
>
>
>
>
> Paolo
>
>
>
>
> On Monday 26 October 2009 02:42:28 pm Marco Rotonda
> wrote:
>
> > 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.
>
>
>
>
> ----------------------------------
>
> 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.
>
>   http://listserv.surfnet.nl/archives/fieldtrip.html
>
>   http://www.ru.nl/fcdonders/fieldtrip/
>
> ----------------------------------
>
> 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.
>
>   http://listserv.surfnet.nl/archives/fieldtrip.html
>
>   http://www.ru.nl/fcdonders/fieldtrip/
>


----------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20091026/371e0791/attachment-0002.html>


More information about the fieldtrip mailing list