[Eeglablist] how to interpolate bad electrodes

Sebastian Korb Sebastian.Korb at pse.unige.ch
Fri Sep 12 08:28:00 PDT 2008


Dear eeglabbers,

I would like to interpolate noisy electrodes (they are thus not missing 
in the chanlocs file) using the eeg_interp function.
I thought that the best thing to do would be to first try with the 
tutorial dataset (eeglab_data.set).
However, even then I am unable to use the function correctly and 
constantly get an error message.

EEG = eeg_interp(EEG, 14);     %that 's what I've entered in matlab, to 
interpolate the electrode n.14 (Cz)


%and here comes what I got:

Points (/30720):??? Error using ==> griddata at 50

X and Y must be same length as Z or the lengths

of X and Y must match the size of Z.

Error in ==> eeg_interp at 185

            [Xi,Yi,badchansdata(:,t)] = griddata(ygood, xgood , 
tmpdata(:,t)',...


As I am new to eeglab, I tried replacing the 'EEG' in the brackets by 
the index of the dataset (e.g. 1), or even by the name of the dataset 
('Continuous EEG Data epochs').
The result was not better though.

Could anybody please help me to resolve this problem?
Thank you very much in advance.
Regards,

Sebastian Korb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sebastian.korb.vcf
Type: text/x-vcard
Size: 323 bytes
Desc: not available
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20080912/9192b678/attachment.vcf>


More information about the eeglablist mailing list