[FieldTrip] interpolation of bad channels matlab error

Zita Eva Patai eva.patai at psych.ox.ac.uk
Fri Apr 17 13:35:46 CEST 2015

Dear FTers

I have been trying to fix some bad channels in my data through
It  seems to not be working. My code is below.
Please note my data object is converted from SPM (in case that matters).

Thanks very much in advance,

data =

      fsample: 250
        label: {324x1 cell}
        trial: {1x505 cell}
         time: {1x505 cell}
         grad: [1x1 struct]
    triallist: {1x505 cell}

>> cfg2

cfg2 =

    badchannel: {2x1 cell}
        method: 'nearest'
    neighbours: [1x306 struct]

>> [interp]=ft_channelrepair(cfg2,data)
the input is raw data with 324 channels and 505 trials
using gradiometers specified in the data
repairing channel MEG1132
    using neighbour repairing channel MEG1421
    using neighbour
repairing bad channels for 505 trials .Error using  *
MTIMES is not supported for one sparse input and one single input.

Error in ft_channelrepair (line 172)
      interp.trial{i} = repair * data.trial{i};

Eva Zita Patai, DPhil
Postdoctoral Researcher
Oxford Centre for Human Brain Activity
University of Oxford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150417/c27a79da/attachment.html>

More information about the fieldtrip mailing list