03 March 2016 1 1K Report

Hi,

I am trying to import EEG data that has been preprocessed and averaged in BrainVision Analyzer (dat files). I have a 2-second segment of data per condition per subject which corresponds to the averaged signal across all trials of each condition for the subject.

I am trying to specify the fieldboxes of FieldTrip's data structure to specify the data in FieldTrip's "raw data" format. Is the following approach correct?

Import the 4 conditions as 4 long trials (2 sec or 2000 samples with

sampling freq of 1000 Hz)

=> data.trial is a 1x4 cell array

and each cell array contains an [nchannels x 2000] matrix

I am trying to fill in the other fields of the "data" structure to mimic

FieldTrip's raw data, following

http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat

but I think I am having problems with either

the basic approach in the first place or

data.sampleinfo

which, if I understand correctly, needs to be specified for long trials.

According to the FT wiki, this should be an array containing [startsample

endsample] to specify the position of each trial, with info for each

trial on every row. However, it doesn't seem right to have

data.sampleinfo = repmat([1 2000],4,1)

Anyway, when I try to run a FFT analysis/run ft_freqanalysis, I get the error:

           Error using ft_specest_mtmfft (line 96)

           "the padding that you specified is shorter than the data

Even if I specify a padding of 2 sec, I run into errors.

Any help very much appreciated!!

Gina

More Gina Joue's questions See All
Similar questions and discussions