[Eeglablist] Get Clean Raw Data to report removed channels

Clement Lee cll008 at eng.ucsd.edu
Wed Mar 17 10:42:12 PDT 2021

Hi Paul,

Here's a line I just wrote that hopefully helps:

rmChanIdx = find(~ismember({EEG.chanlocs.labels},

IIRC CRD changes the chanlocs structure when removing channels. If this is
the case, we can compare the chanlocs structure before and after clean raw
data. `rmChanIdx` stands for removed channel indices. You can access the
channel labels with `EEG.chanlocs(rmChanIdx).labels` to see the labels of
the removed channels.

Clement Lee
Applications Programmer
Swartz Center for Computational Neuroscience
Institute for Neural Computation, UC San Diego

On Wed, Mar 17, 2021 at 8:47 AM Beach, Paul Anthony via eeglablist <
eeglablist at sccn.ucsd.edu> wrote:

> Hello EEGLAB community,
> Does anyone have a quick script that could be added to the clean_raw_data
> (CRD) function (or separately on command line) to spit out exactly what
> channels (number and name) are removed as part of the CRD function?
> The latter would help for quickly interpolating the removed channels.
> As it is I have to stare at a list of original channels/numbers and
> compare it to the subsequent one leftover after CRD. It’s painful.
> Thanks!
> --
> Paul Beach DO, PhD
> PGY5, Movement Disorder Fellow
> Department of Neurology
> Emory University School of Medicine
> ________________________________
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
> _______________________________________________
> 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