[Eeglablist] how to interpolate bad electrodes

Adrian Willoughby awilloug at gmail.com
Thu Oct 16 03:41:12 PDT 2008


Hi,

I get the same error message, even with the electrode locations
loaded.  Are there an other potential solutions out there?  Any help
anyone can offer would be greatly appreciated.

Many thanks,

Adrian



On Fri, Sep 12, 2008 at 9:49 PM, Bradley Voytek <semiconscious at gmail.com> wrote:
> Sebastian:
>
> In order for the interpolation to work correctly, you need to have the
> electrode positions. My guess is that you don't have that. You can
> load default 10-20 electrode locations through the eeglab GUI by
> selecting edit > channel locations > look up locs.
>
> ::brad
>
> On Fri, Sep 12, 2008 at 8:28 AM, Sebastian Korb
> <Sebastian.Korb at pse.unige.ch> wrote:
>> 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
>>
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
>



More information about the eeglablist mailing list