[Eeglablist] how to change channel labels?

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Tue Mar 22 02:30:25 PDT 2016


Dear Jakub,

I think there is a smart way to do it without using for loop, but for the
sake of simplicity let's say that we use for loop. Then, (without opening
Matlab--sorry for being lazy)

for n = 1:length
   EEG.chanlocs(n).label = channelNameList{n};
end

something like this MUST work. If it does not, something is wrong with the
channel names etc.

Makoto

On Fri, Feb 19, 2016 at 1:34 AM, Jakub Chromec <chromec.jakub at gmail.com>
wrote:

> Greetings,
>
> I have successfully imported data from an array. I have a character vector
> of channel names and I would like to change the labels to those names. Is
> this possible?
>
> I tried EEG.chanlocs.labels = cellstr(mylabelvector) but it throws an
> error upon saving (and removes the labels). What now?
>
> Thanks,
>
> Jakub
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160322/97110af3/attachment.html>


More information about the eeglablist mailing list