Hi Fieldtripers,<br><br>I just noticed a small inconsistency in the use of ft_timelockanalysis function.<br><br>If you use the cfg.trials option, be careful to always specify a non-empty vector.<br><br>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.<br>
<br>The function doesn't detect the contradiction.<br><br>Hope this will help some of you.<br><br>Cheers, <br><br>Lucie<br clear="all"><br>-- <br>Lucie CHARLES<br><br>INSERM-CEA Cognitive Neuroimaging unit<br><br>CEA/SAC/DSV/DRM/NeuroSpin<br>
Bāt 145, Point Courrier 156<br>F-91191 Gif/Yvette, FRANCE<br>Tel : +33 1 69 08 99 74<br>Fax : +33 1 69 08 79 73<br>
<p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>