[FieldTrip] Trigger channel for edf
David Iglesias López
davidig at hotmail.es
Mon Nov 7 16:06:54 CET 2011
Hi Robert,
And the end I got it before like this:
cfg = [];
cfg.dataset = filename;
cfg.continuous = 'yes';
cfg.trialfun = 'trialfun_david';
cfg = ft_definetrial(cfg);
dataout = ft_preprocessing(cfg);
And it worked nicely.
Thank you,
David
> From: r.oostenveld at donders.ru.nl
> Date: Mon, 7 Nov 2011 10:22:27 +0100
> To: fieldtrip at donders.ru.nl
> Subject: Re: [FieldTrip] Trigger channel for edf
>
> Hi David
>
> On 7 Nov 2011, at 2:29, David Iglesias López wrote:
> > I would like like to simply make all my data as continuous
>
> cfg = [];
> cfg.dataset = 'filename.edf'
> cfg.continuous = 'yes'
> data = ft_preprocessing(cfg)
>
> should do that for you. See also
> http://fieldtrip.fcdonders.nl/faq/how_can_i_process_continuous_data_without_triggers
>
> > and then apply my trl matrix, which is indeed correct. How could I proceed? Should I change hdr info after it is read, updating nTrials and nSamples?
> > I don't know how to chop my data correctly.
>
>
> Once the data is in memory (either segmented in many small pieces or one large piece), you can use ft_redefinetrial to change the segmentation (e.g. cut trials into shorter pieces or change from stimulus locked to response locked). In your case you can pass the trl to ft_redefinetrial.
>
> best
> Robert
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20111107/21adba66/attachment-0002.html>
More information about the fieldtrip
mailing list