[FieldTrip] Bug in ft_channelrepair

Shlomit Beker shlomitbeker at gmail.com
Tue Aug 15 04:54:41 CEST 2017


Hi All,

I have a weird issue - I get error when calling ft_channelrepair, which I
cannot find a solution for. For some datasets (but not for all), it gives
the following error:
Error using  -
Matrix dimensions must agree.
Error in ft_channelrepair (line 196)
        distance = sqrt(sum((sens.chanpos(goodsensindx, :) -
        repmat(sens.chanpos(badsensindx, :), numel(goodsensindx), 1)).^2,
2));

Apparently, ft_channelrepair does not reconstruct some of the bad
electrodes (in my case - PO8, P10), which cause sens.chanpos to be empty.

Any help is appreciated!


Shlomit Beker
CNL lab
Albert Einstein College of Medicine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170814/ccc99da3/attachment.html>


More information about the fieldtrip mailing list