<div dir="ltr"><div class="gmail_default" style=""><font color="#000000">Hello Laura, some quick notes below I hope they are useful to you. Cheers!</font></div><div class="gmail_default" style=""><font color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" color="#000000">This is an unusual issue that does not often come up as the basic rereferencing functions in eeglab work fine </font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" color="#000000">***</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" color="#000000">One thing to do is look closely at each code step of what happens when channels are dropped unexpectedly. It's likely that eeglab is getting confused and should step back and look more closely at the way the rererefencing function works (both via GUI and via code)</font></div><div class="gmail_default" style=""><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default" style=""><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">*** </span></div><div class="gmail_default" style=""><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">useful  to share the function you are using., </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">pop_eegchanoperator, which is of course not part of the eeglab distribution.</span></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">***</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">double check what happens when you attempt this reref step via the eeglab gui, and what the results of eegh output are after successfully referencing from the gui. Practice same steps with eeglab tutorial files if you have not had a chance to yet.</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">***</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">If one is matlab saavy,it may be useful to open the actual eeglab reref function and walk through it a little to get insight about why the channels are being dropped unexpectedly.</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">***</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000">In case you are not using an average reference it's good to double check that one has good reasons for not doing so. In not sure, best to mimic EEG leaders in high-quality EEG journals.</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div></div>