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
function.

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

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.

Cheers,

Lucie

-- 
Lucie CHARLES

INSERM-CEA Cognitive Neuroimaging unit

CEA/SAC/DSV/DRM/NeuroSpin
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100406/ec4de592/attachment.html>


More information about the fieldtrip mailing list