<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-mailStijl17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<br>
<br>
I’m currently working with EEG data and so far everything is going smoothly. However, I first used average as rereferencing method, but we came to the conclusion this was not the most preferable method for our study.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US">So, instead of average, I wanted to use laplace. The code runs smoothly and without errors. But when I compute the time frequency plots, the output is exactly the same for both referencing
methods.<br>
<br>
This is the code I use for laplace:<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg=[];<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.channel = [1:31];
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.reref =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'yes'<span style="color:black">;<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.refmethod =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'laplace'<span style="color:black">;<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.refchannel =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'all'<span style="color:black">;<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">data_eeg_avg = ft_preprocessing(cfg, data_eeg);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US"><br>
And this is the code I use for average:<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg=[];<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.channel = [1:31];
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.reref =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'yes'<span style="color:black">;<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.refmethod =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'avg'<span style="color:black">;<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">cfg.refchannel =
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas">'all'<span style="color:black">;</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">data_eeg_avg = ft_preprocessing(cfg, data_eeg);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US">I did plot the signal of one channel after both methods and there is a visible difference between the two, so the function itself is working properly (I think). I also checked my other steps,
such as filtering and epoching, but also there I cannot find anything out of the ordinary or that I’m using older data.
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US">I was wondering if anyone else has had this problem before or has any suggestions?<br>
<br>
Thanks so much in advance!<br>
<br>
Kind regards, Dewi</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div style="text-align: center; font-family: Trebuchet MS,Arial,Helvetica,sans; font-size: 9px; color: #000000;">
______________________________________________________<br>
AmsterdamUMC disclaimer : www.amsterdamumc.org/disclaimers<br>
</div>
</body>
</html>