[FieldTrip] channelrepair issue

Jim Li megjim1 at gmail.com
Thu Jun 30 08:05:08 CEST 2011

Dear all,

We have 4D's WH3600 MEG system (248 channels) and we found the

cfg = [];

cfg.dataset = 'e,rfhp0.1Hz';

cfg.trialdef.eventtype = 'TRIGGER';

cfg.trialdef.eventvalue = 320;

cfg.trialdef.prestim = 1;

cfg.trialdef.poststim = 1;

cfg = ft_definetrial(cfg);

cfg.blc = 'yes';

cfg.blcwindow = [-1 0];

cfg.channel = {'MEG'};

raw_DATA = ft_preprocessing(cfg);

raw_DATA.grad = ft_convert_units(raw_DATA.grad, 'cm')

cfg = [];
cfg.badchannel = {'A234'};
[raw_DATA] = ft_channelrepair(cfg, raw_DATA)
the input is raw data with 248 channels and 201 trials
repairing channel A234
  using neighbour A121
  using neighbour A143
  using neighbour A154
  using neighbour A173
  using neighbour A224
  using neighbour A8
  using neighbour A91
repairing bad channels for trial 1
repairing bad channels for trial 2
repairing bad channels for trial 3

But channels like A121 and A143 are far away from the bad channel A234. How
can they be used as neighbours (i.e. within 4cm, the default value for
cfg.neighbourdist) for this bad channel?

Any suggestions?

Thanks a lot.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110630/668ddfb2/attachment-0001.html>

More information about the fieldtrip mailing list