[FieldTrip] structure of 'data' argument for ft_preprocessing

Dave Britton dave at davebritton.com
Fri Jan 18 21:24:28 CET 2013

On 01/18/2013 03:46 AM, Eelke Spaak wrote:

Each element k in time should be a 1xN vector of time points
corresponding to the time axis of trial k. Each element k in trial
should be an MxN matrix corresponding to channels X timepoints. If
your data is structured like this, it should work. Note, though, that
FT uses 1xNumTrials cell arrays for time and trial, whereas you are
using NumTrialsx1. I don't know if this matters, but it might be worth
changing it around.

Thanks, this is very helpful. It seems that data.sampleinfo is also 
important for raw data, and needs to be in the reverse order, i.e. 

More information about the fieldtrip mailing list