[Eeglablist] Unrecognized function or variable 'set_chanid'.

Velu Prabhakar Kumaravel velu.kumaravel at unitn.it
Fri Apr 9 09:29:20 PDT 2021


Hi,

Please try this -

labels = {EEG.chanlocs.labels};
ch_idx = find(cellfun(@(x)isequal(x,'*F3*'),labels));
disp(ch_idx)

Best,

Velu Prabhakar Kumaravel, PhD Student
Center for Mind/Brain Sciences,
University of Trento, Italy


On Fri, 9 Apr 2021 at 17:45, Krogmeier, Claudia M via eeglablist <
eeglablist at sccn.ucsd.edu> wrote:

> Hello,
>
> I would like to get the channel index of F3, for example.
>
> I modified this code on the eeglab tutorial page, but it is likely
> outdated:
>
> leftindex = set_chanid(EEG, {'F3'});
> rightindex = set_chanid(EEG, {'F4'});
>
> The error I receive is in the title: Unrecognized function or variable
> 'set_chanid'
>
> I have found a few things in the eeglab list but I have not been able to
> get the index using the channel name yet.
>
> I have a dataset in which many channels are removed, so I would like to
> know the new channel indices for various electrodes, using the name of the
> electrode.
>
> Thank you for the help!
> 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