Thank you very much, this solves the problem.<br><br>
<div><span class="gmail_quote">On 5/10/07, <b class="gmail_sendername">Sarnthein Johannes</b> <<a href="mailto:Johannes.Sarnthein@usz.ch">Johannes.Sarnthein@usz.ch</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Dear Nikolai,<br><br>we do exactly the same thing you want to do.<br>These are the lines that you need for your script
<br>(I don't remember the GUI-buttons to be clicked):<br><br>% re-references 61 cephalic channels to (M1+M2)/2: chans 40 and 60;<br>% excludes bipolar channels 62:64 from re-referencing<br>EEG.data = reref(EEG.data, [40 60], 'method', 'withref', 'refloc',{
<br>'CPz',180,0.1},...<br>'exclude', [62:64],'keepref', 'off');<br>% assigns new electrode labels and coordinates<br>EEG.chanlocs=pop_chanedit(EEG.chanlocs, 'load',{ 'fms63.loc',
<br>'filetype',''});<br><br>The file fms63.loc contains the new electrode listing.<br>Be aware that the data from CPz now appear at EEG.data(end,:).<br>This means that you have to label your last EEG trace with CPz
<br>and assign the according coordinates in fms63.loc.<br>(I had tried for some days to get the trace of CPz between CP1 and CP2<br>but finally gave up).<br><br>Best,<br>Johannes<br><br><br>________________________________
<br><br>Von: <a href="mailto:eeglablist-bounces@sccn.ucsd.edu">eeglablist-bounces@sccn.ucsd.edu</a><br>[mailto:<a href="mailto:eeglablist-bounces@sccn.ucsd.edu">eeglablist-bounces@sccn.ucsd.edu</a>] Im Auftrag von Nikolai
<br>Novitski<br>Gesendet: Dienstag, 8. Mai 2007 22:23<br>An: <a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a><br>Betreff: [Eeglablist] re-referencing<br><br><br>Dear all,<br><br>We are recording EEG in Neuroscan referenced to CPz; the position of the
<br>reference it is hard-wired in our Maglink cap. Then we need to<br>rereference to the average of both mastoid leads. It goes ok if no ICA<br>had performed on this data. After the ICA however the program returns an<br>error on trying to re-reference to the average of 2 electrodes.
<br>Re-referencing to one single electrode it works ok. It wouldn't be a<br>problem to re-reference before ICA, but we also have two bipolar<br>channels for EOG and those are treated as referenced to common reference<br>
during rereferencing, thus they are re-referenced together with all the<br>rest.<br>So, I have two questions.<br><br>1) Is there any reason why re-refencing to more than one electrode<br>doesn't work after or is it a bug?
<br><br>2)Is it possible to mark bipolar channels as bipolar so that they are<br>not effected by the re-referencing of the common-referenced electrodes?<br><br>Thank you in advance.<br><br>Nikolai Novitski,<br>KU Leuven<br>
</blockquote></div><br>