trial selection with ft_timelockanalysis

Lucie Charles lucie.charles.ens at GOOGLEMAIL.COM
Tue Apr 6 17:39:18 CEST 2010

Hi Fieldtripers,

I just noticed a small inconsistency in the use of ft_timelockanalysis

If you use the cfg.trials option, be careful to always specify a non-empty

If the vector that you give to cfg.trials is empty ( ie cfg.trials = [] ),
for example if you have no trials in the specified condition, than
ft_timelockanalysis will take ALL THE TRIALS of the data to compute the
average and no error message will be returned.

The function doesn't detect the contradiction.

Hope this will help some of you.




INSERM-CEA Cognitive Neuroimaging unit

Bât 145, Point Courrier 156
F-91191 Gif/Yvette, FRANCE
Tel : +33 1 69 08 99 74
Fax : +33 1 69 08 79 73

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the fieldtrip mailing list