[FieldTrip] RE : Best way of saving data in format that fieldtrip will understand
VERSINI JEAN-BAPTISTE p1207642
jean-baptiste.versini at etu.univ-lyon1.fr
Tue Dec 10 11:43:06 CET 2013
Hello,
data.trial is a <1 x NTrial cell> and each cell in it is a <NChan x NSample double>
data.time is a <1 x NTrial cell> and each cell in it is a <1 x NSample double>, e.g. [0 0.2 0.4 0.6 0.8 1] for one second trial sampled at 5Hz.
________________________________________
De : fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] de la part de Ozan Çağlayan [ozancag at gmail.com]
Date d'envoi : mardi 10 décembre 2013 10:09
À : FieldTrip discussion list
Objet : Re: [FieldTrip] Best way of saving data in format that fieldtrip will understand
On Mon, Dec 9, 2013 at 12:30 PM, "Jörn M. Horschig"
<jm.horschig at donders.ru.nl> wrote:
> Dear Ozan,
>
> plain mat-files will do, but you will have to write your own wrapper:
> http://fieldtrip.fcdonders.nl/faq/how_can_i_import_my_own_dataformat?s[]=import
>
> I don't know any Python toolboxes, so I cannot help with that (and that is
> because I don't know Python)
Hi,
I think I managed out doing this but there are some points I like to discuss.
My EEG stream is made of 14 channels. Sampling rate is 128.
I don't have separate trials but a single continuous recording. So if
I understand correctly I have to create the data structure like this:
data.fsample = 128
data.labels = cell array of channel labels
data.trial = {[14xNsamples]} (Single element cell array containing the
whole EEG data)
data.sampleinfo = [1 Nsamples]
data.time = {linspace(0, Nsamples/fsample, Nsamples)} ??
What should the data.time be? Is it the whole recording duration
divided by Nsamples?
Thanks.
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list