redefinetrial() probelm

Martin Bleichner bleichner.martin at GMAIL.COM
Wed Sep 3 10:48:13 CEST 2008

I am trying to do a 'Permutation tests for time-frequency representations: 
Within trial experiments' as described in the tutorial.

However, I run into problems using the command redefinetrial(). 
When I apply it to my preprocessed data I get the error message
	‘??? Error using ==> redefine trial at 112
	the trial definition is inconsistent with the data.’

This might be connected to the warning I get when I am using freqanalysis():
‘could not locate the trial definition ‘trl’ in the data structure’, however in this 
case the analysis runs through without further problems.  

I am using data that was preprocessed (re-referencing and epoching) in eeglab 
and than imported into fieldtrip using eeglab2fieldtrip(), and my data struct 
does not contain the ‘trl’ field. 

What could I do? I could also do my preprocessing and epoching in fieldtrip, but 
I could not figure out how to import my micromed (.trc) files into fieldtrip, so I 
always took the route via eeglab. 

Thanks for you help


The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and

More information about the fieldtrip mailing list