[FieldTrip] Best way of saving data in format that fieldtrip will understand

Ozan Çağlayan ozancag at gmail.com
Tue Dec 10 10:09:11 CET 2013

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)


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?


More information about the fieldtrip mailing list