[Eeglablist] pop_reref to exclude some channels for average reference

Tarik S Bel-Bahar tarikbelbahar at gmail.com
Fri Oct 2 20:18:18 PDT 2015


​Hello Sue, a quick way to check the right code format you need to use is
to do it from the GUI, and then type eegh to get the correct format. I'm
not sure, but what might be happening is that you might be calling the
electrode numbers vs. their labels, or vice versa. Sometimes the Labels
(E1....E128, for example) match up with the electrode numbers, but not
always. Another thing is to make sure you update the EEG structure with EEG
store as shown in the eegh output. Another thing is to make sure you have
the right channel labels and locations by specifically loading the specific
channel locations file you intend to use. Also, check if "include" is an
option in that function that you could try.








On Tue, Sep 29, 2015 at 3:39 PM, Sue Peters <sp at suepeters.com> wrote:

> Dear EEGLab Users,
>
> I am using this function, pop-reref, for an average reference of 124
> channels.  However, I would like to exclude 16 of these channels from the
> average reference calculation. I have used the 'exclude' input to specify
> the exclusion of these channels:
>
> EEG = pop_reref( EEG, [], 'exclude', [17 43 48 49 56 63 68 73 81 88 94 99
> 107 113 119 120]);
> %16 channels removed leaving 108 for av ref
>
> I've also tried just selecting specifying the 108 channels directly:
>
>  EEG = pop_reref(EEG, [1:16 18:31 33:37 39:42 45:47 50:55 58:62 65:67
> 70:72 75:80 83:87 90:93 96:98 101:106 108:112 115:118 122:124]);
>
> But I'm not sure that either is working correctly, and am not sure how to
> confirm that the function is actually averaging the 108 channels, and using
> these as the reference.
>
> Any thoughts are welcome!
>
> Thanks,
>
>
> Sue Peters
> PhD Candidate
>
> Center for Molecular and Behavioral Neuroscience
> Rutgers University - Newark
> 197 University Avenue, Room 209
> Newark, New Jersey, 07102
> USA
>
> sp at suepeters.com
> mobile: 646-337-7025
> fax: 206-338-2972
>
> www.linkedin.com/in/suepeters
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20151002/4363caa8/attachment.html>


More information about the eeglablist mailing list