<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear all,</p>
<p>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).
<br>
</p>
<p>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.</p>
<p>Any help is appreciated.</p>
<p>Best,</p>
<p>Jo<br>
</p>
</div>
</body>
</html>