Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_channelrepair”.
FT_CHANNELREPAIR repairs bad or missing channels in MEG or EEG data by replacing them with the average of its neighbours (nearest-neighbour approach). It cannot be used reliably to repair multiple bad channels that lie next to each other. Use as [interp] = ft_channelrepair(cfg, data) The configuration must contain cfg.badchannel = cell-array, see FT_CHANNELSELECTION for details cfg.missingchannel = cell-array, see FT_CHANNELSELECTION for details cfg.neighbours = neighbourhoodstructure, see also FT_PREPARE_NEIGHBOURS cfg.trials = 'all' or a selection given as a 1xN vector (default = 'all') For reconstructing channels that are absent in your data, please define your neighbours by setting cfg.method='template' and call FT_PREPARE_NEIGHBOURS *without* the data argument: cfg.neighbours = ft_prepare_neighbours(cfg); This will include channels that are missing in your in the neighbour- definition. You should define sensor positions as defined by FT_FETCH_SENS, but sens definitions in the cfg will be preferred over sens definition from the data To facilitate data-handling and distributed computing with the peer-to-peer module, this function has the following options: cfg.inputfile = ... cfg.outputfile = ... If you specify one of these (or both) the input data will be read from a *.mat file on disk and/or the output data will be written to a *.mat file. These mat files should contain only a single variable, corresponding with the input/output structure. See also FT_MEGREALIGN, FT_MEGPLANAR, FT_NEIGHBOURSELECTION, FT_FETCH_SENS
Share this page: