Assembling the data matrices and setting the options for ft_freqstatistics is a bit complicated, and maybe some cases are not handled correctly. This will require a bit of debugging on your end.
- Place a breakpoint in process_ft_freqstatistics at line 265.
https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ft_freqstatistics.m#L265 - Check that all the options and the data looks like what you would like to send to ft_freqstatistics.
3a) If the input data is not correctly formatted, tell me what is wrong and I’ll try to fix it.
3b) If it looks correct: save the statcfg and ftAllFiles matrices in .mat file, and post this as a new issue on the FieldTrip github: https://github.com/fieldtrip/fieldtrip/issues