<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi, <br>
</p>
<p><br>
</p>
<p>My plan was to do bipolar re-referencing of two electrode shanks separately using cfg.groupchans.<br>
</p>
<p><br>
</p>
<p>I tried to use cfg.groupchans to do a bipolar re-referencing of electrodes that are located on two shanks. The electrodes were named AL101, AL102, AL103, .... and BL101, BL102, BL103, ....</p>
<p><br>
</p>
<p>I then used:<br>
</p>
<p><br>
</p>
<p></p>
<div>cfg = [];<br>
cfg.channel = 'all';  this is the default<br>
cfg.reref = 'yes';<br>
cfg.refmethod = 'bipolar';<br>
cfg.refchannel = 'all';<br>
cfg.groupchans = 'yes';</div>
<div>     <br>
dataRef   = ft_preprocessing(cfg, dataPrepro);</div>
<div><br>
</div>
<div><br>
</div>
<div>I was then expecting that the bipoalr referencing would take place on only the respective electrode groups AL and BL. However, one pairing after the bipolar rereferencing was e.g.  AL101-BL101.</div>
<div><br>
</div>
<div>Did I do somewthing wrong? Any help is welcome...</div>
<div><br>
</div>
<div>Thanks,</div>
<div>best,</div>
<div>Rüdiger<br>
<br>
   <br>
   <br>
</div>
<br>
<p></p>
</div>
</body>
</html>