<div dir="ltr"><div>Dear Raquel,</div><div><br></div><div>I put all the channel labels to tmp and confirmed the following.</div><div><br></div><div>>> length(tmp)</div><div><br></div><div>ans =</div><div><br></div><div>    64</div><div><br></div><div>>> length(unique(tmp))</div><div><br></div><div>ans =</div><div><br></div><div>    64</div><div><br></div><div>Hmm so why does it not work?</div><div>You probably want to use a debug mode to troubleshoot it.</div><div>Open the code and put a breakpoint (red circle) at the left end column of the line, then run the code. You can see what variables are generated and what values are assigned. Can you do it to tell me what you see there?</div><div><br></div><div>Makoto</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 6:07 AM, Raquel London <span dir="ltr"><<a href="mailto:raquel@dragondelapatagonia.com" target="_blank">raquel@dragondelapatagonia.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">Dear Makoto,<div><br></div><div>Thanks for honoring me with so many emails today :)</div><div>Ok, so I typed <span style="font-size:12.8px"><b>{EEG.chanlocs.labels}' </b>on the command line and I </span>got this (see below). I can't find any duplicate labels..</div><div><br></div><div>cheers,</div><div>Raquel</div><div><br></div><div>'<font color="#000000">Fp1'</font><br></div><div><div><font color="#000000">    'AF7'</font></div><div><font color="#000000">    'AF3'</font></div><div><font color="#000000">    'F1'</font></div><div><font color="#000000">    'F3'</font></div><div><font color="#000000">    'F5'</font></div><div><font color="#000000">    'F7'</font></div><div><font color="#000000">    'FT7'</font></div><div><font color="#000000">    'FC5'</font></div><div><font color="#000000">    'FC3'</font></div><div><font color="#000000">    'FC1'</font></div><div><font color="#000000">    'C1'</font></div><div><font color="#000000">    'C3'</font></div><div><font color="#000000">    'C5'</font></div><div><font color="#000000">    'T7'</font></div><div><font color="#000000">    'TP7'</font></div><div><font color="#000000">    'CP5'</font></div><div><font color="#000000">    'CP3'</font></div><div><font color="#000000">    'CP1'</font></div><div><font color="#000000">    'P1'</font></div><div><font color="#000000">    'P3'</font></div><div><font color="#000000">    'P5'</font></div><div><font color="#000000">    'P7'</font></div><div><font color="#000000">    'P9'</font></div><div><font color="#000000">    'PO7'</font></div><div><font color="#000000">    'PO3'</font></div><div><font color="#000000">    'O1'</font></div><div><font color="#000000">    'Iz'</font></div><div><font color="#000000">    'Oz'</font></div><div><font color="#000000">    'POz'</font></div><div><font color="#000000">    'Pz'</font></div><div><font color="#000000">    'CPz'</font></div><div><font color="#000000">    'Fpz'</font></div><div><font color="#000000">    'Fp2'</font></div><div><font color="#000000">    'AF8'</font></div><div><font color="#000000">    'AF4'</font></div><div><font color="#000000">    'Afz'</font></div><div><font color="#000000">    'Fz'</font></div><div><font color="#000000">    'F2'</font></div><div><font color="#000000">    'F4'</font></div><div><font color="#000000">    'F6'</font></div><div><font color="#000000">    'F8'</font></div><div><font color="#000000">    'FT8'</font></div><div><font color="#000000">    'FC6'</font></div><div><font color="#000000">    'FC4'</font></div><div><font color="#000000">    'FC2'</font></div><div><font color="#000000">    'FCz'</font></div><div><font color="#000000">    'Cz'</font></div><div><font color="#000000">    'C2'</font></div><div><font color="#000000">    'C4'</font></div><div><font color="#000000">    'C6'</font></div><div><font color="#000000">    'T8'</font></div><div><font color="#000000">    'TP8'</font></div><div><font color="#000000">    'CP6'</font></div><div><font color="#000000">    'CP4'</font></div><div><font color="#000000">    'CP2'</font></div><div><font color="#000000">    'P2'</font></div><div><font color="#000000">    'P4'</font></div><div><font color="#000000">    'P6'</font></div><div><font color="#000000">    'P8'</font></div><div><font color="#000000">    'P10'</font></div><div><font color="#000000">    'PO8'</font></div><div><font color="#000000">    'PO4'</font></div><div><font color="#000000">    'O2'</font></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-1784436836548792023gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<div>Dragón de la Patagonia</div><div>Ramon Barros Luco 688<br>Puerto Natales - Patagonia - Chile <br>Oficina: <a href="tel:%2B56-9-94022038" value="+56994022038" target="_blank">+56-9-94022038</a></div><div>Skype: raquel.london</div><div><br></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Tue, Oct 18, 2016 at 7:43 AM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</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">Dear Raquel,<div><br></div><div>Very good troubleshooting Raquel.</div><div><span><pre style="word-wrap:break-word;white-space:pre-wrap"><font color="#ff0000">% check if duplicate channel label
            % ------------------------------<wbr>--
            if isfield(EEG.chanlocs, 'labels')
                if length( { EEG.chanlocs.labels } ) > length( unique({ EEG.chanlocs.labels } ) )
                    disp('Warning: some channels have the same label');
                end;
            end;</font></pre></span>This indeed means something is wrong with your data. Let's find it out. <br>Try this, and paste what you get on the command line.</div><div><br></div><div>{EEG.chanlocs.labels}'<br></div><div><br></div><div>What do you get?</div><div><br></div><div>Makoto</div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1784436836548792023h5">On Sat, Oct 1, 2016 at 9:26 AM, Raquel London <span dir="ltr"><<a href="mailto:raquel@dragondelapatagonia.com" target="_blank">raquel@dragondelapatagonia.co<wbr>m</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="m_-1784436836548792023h5"><div dir="ltr"><div><div class="m_-1784436836548792023m_-6892840691682036113gmail-m_-9140280945679788247gmail_signature"><div dir="ltr"><div>Dear eeglabbers,</div><div><br></div><div>With one of my subjects, I encountered the following error message: <i>Warning: some channels have the same label</i></div><div>I did not do anything differently with this subject compared to the others. I checked the channel labels and they are the same as for other data sets, and none are repeated.</div><div>Scalp topo's don't look strange either. </div><div><br></div><div>I found one similar bug report online, but no solution was reported there.</div><div><br></div><div>In the EEG.checkset function, I found this segment; however as I mentioned, there are no repeating labels.</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">% check if duplicate channel label
            % ------------------------------<wbr>--
            if isfield(EEG.chanlocs, 'labels')
                if length( { EEG.chanlocs.labels } ) > length( unique({ EEG.chanlocs.labels } ) )
                    disp('Warning: some channels have the same label');
                end;
            end;</pre></div><div><br></div><div>Now, I'm not sure what my next step could be in figuring out what, if anything, could be wrong. Does anyone have an idea?</div><div><br></div><div>Thanks!</div><span class="m_-1784436836548792023m_-6892840691682036113gmail-HOEnZb"><font color="#888888"><div>Raquel</div></font></span></div></div></div>
</div>
<br></div></div><span>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></span></blockquote></div><span class="m_-1784436836548792023HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-1784436836548792023m_-6892840691682036113gmail_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>
</font></span></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>