<div dir="ltr">Dear Jakub,<div><br></div><div>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)</div><div><br></div><div>for n = 1:length</div><div>   EEG.chanlocs(n).label = channelNameList{n};</div><div>end</div><div><br></div><div>something like this MUST work. If it does not, something is wrong with the channel names etc.</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 19, 2016 at 1:34 AM, Jakub Chromec <span dir="ltr"><<a href="mailto:chromec.jakub@gmail.com" target="_blank">chromec.jakub@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Greetings,</div><div><br></div>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?<div><br></div><div>I tried EEG.chanlocs.labels = cellstr(mylabelvector) but it throws an error upon saving (and removes the labels). What now?</div><div><br></div><div>Thanks,</div><div><br></div><div>Jakub</div></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>