[FieldTrip] Problem with FT's nanmean

Joachim.Lange at med.uni-duesseldorf.de Joachim.Lange at med.uni-duesseldorf.de
Wed May 6 12:27:48 CEST 2020

Dear all,

I have a dataset with 94 trials, 44800 (virtual) channels, and 600 timepoints. I applied ft_timelockanalysis on this dataset and the output was surprisingly "0" for all channel-time pairs, even for those channels that contained only NaNs (because they were outside the brain). If I tried a smaller number of trials, everything was fine, though (i.e., no zeros, but plausible values).

I was able to boil down the problem to the function "nanmean". If I extract a 94x44800x600 matrix from the dataset and use FT's nanmean (apparently fieldtrip-20200423/external/stats/nanmean.mexa64), the result is zeros, again. If I use matlab's nanmean, everythig seems fine.

Any help is appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200506/efa027e5/attachment.htm>

More information about the fieldtrip mailing list