<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Hi all,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
I don’t quite understand the effects of tapering for power estimates. I have resting data segmented into 2 second epochs. With the following parameters, could someone explain how to equate the data’s power spectral density back to it’s original spectral density
 (in the for loop)? </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);">
<span style="color: #000000">cfg.method = </span><span style="color: #b245f3">'mtmfft'</span><span style="color: #000000">; </span></p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);">
<span style="color: #000000">cfg.taper      = </span><span style="color: #b245f3">'dpss'</span></p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);">
<span style="color: #000000">cfg.polyremoval = 1; </span></p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;">
cfg.tapsmofrq = 1;</p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;">
cfg.foilim    = [2 80];</p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;">
<br>
</p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;">
cfg.pad= 100; </p>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div>
<p style="color: rgb(0, 0, 0); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal;">
data2 = eeglab2fieldtrip(EEG, <span style="color: #b245f3">'preprocessing'</span>);</p>
<p style="color: rgb(0, 0, 0); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal; min-height: 12px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal; min-height: 12px;">
sizedat = size(EEG.data);</p>
<p style="color: rgb(0, 0, 0); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal; min-height: 12px;">
    </p>
<p style="color: rgb(37, 153, 45); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal;">
<span style="color: #000000">    </span><span style="color: #0433ff">for</span><span style="color: #000000"> i = 1:sizedat(3)</span></p>
<p style="color: rgb(0, 0, 0); font-family: Courier; font-size: 10px; margin: 0px; line-height: normal;">
        data2.trial{i} = data2.trial{i}*10; </p>
<p style="margin: 0px; line-height: normal;"><font face="Courier"><span style="font-size: 10px;">    </span></font><font color="#0433ff" face="Courier"><span style="font-size: 10px;">End</span></font></p>
<p style="margin: 0px; line-height: normal;"><font color="#0433ff" face="Courier"><span style="font-size: 10px;"><br>
</span></font></p>
<p style="margin: 0px; font-size: 10px; line-height: normal; font-family: Courier;">
[freq2] = ft_freqanalysis(cfg, data2);</p>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><span style="font-size: 12px;">Thanks in advance!</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><span style="font-size: 12px;"><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><span style="font-size: 12px;">Best,</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><span style="font-size: 12px;"><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><span style="font-size: 12px;">Ariel </span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>