[Eeglablist] Getting bad channel from script

Cedric Cannard ccannard at protonmail.com
Wed Apr 7 15:14:23 PDT 2021


Hi,

Considering your data before rejecting bad channels is called originalEEG and your data after rejecting them is called cleanEEG, you can do this with:
bad_channels = find(~ismember({originalEEG.chanlocs.labels},
{cleanEEG.chanlocs.labels}));



Cedric


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, April 7, 2021 2:15 PM, Krogmeier, Claudia M via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hello,
>
> I have a created a script to preprocess my EEG data which will automatically detect bad channels and then will use the previous dataset to interpolate the bad channels from (in code without the GUI).
>
> Is there a simple way to output which channel was bad and therefore interpolated? I have not been able to code this so that I do not have to click back into the saved datasets and look in order to see which channel is missing from the bad channel rejected data set. I have used the dataset and session histories, but I do not see an output from the bad channel detection and interpolation commands.
>
> Thank you,
> Claudia
>
> 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