Interpolating bad channels in EEG

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Thu Jul 5 17:06:16 CEST 2007


Hi Helen

> Is there a function in Fieldtrip that can replace data from a bad EEG
> channel using interpolation of neighbouring channels?

There is the function MEGREPAIR, which also will work on EEG
channels. It does require that you specify a structure with electrode
positions in 3D. See http://www2.ru.nl/fcdonders/fieldtrip/doku.php?
id=fieldtrip:documentation:frequently_asked_questions#how_are_electrodes
_magnetometers_or_gradiometers_described and see READ_FCDC_ELEC.

Since the function was written for MEG data, you have to add the
electrode structure to the data as if it is a gradiometer structure,
i.e.
   elec = something...
   data.grad = elec
prior to calling MEGREPAIR. You also have to specify
cfg.neighbourdist in the same units as they are in your electrode
definition (e.g. cm or mm).

best regards,
Robert

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.



More information about the fieldtrip mailing list