<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Davide,<div><br></div><div>If you pad up to 10 seconds, you may change the filterfreqs into:</div><div><br></div><div>filterfreqs = [49:0.1:51 99:0.1:101 149:0.1:151].</div><div><br></div><div>Notice the 0.1, rather than the 1. This is because a 10-second segment of data has an intrinsic frequency resolution of 0.1 Hz.</div><div><br></div><div>Note that this may make the code rather slow to run. Wouldn't it more sensible then to use a bsfilter?</div><div><br></div><div>Best,</div><div><br></div><div>JM</div><div><br><div><div>On Oct 4, 2011, at 3:05 PM, Davide Rivolta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div> </div>
<div>Dear all,</div>
<div> </div>
<div>I am trying to get rid of the power line noise. I use the dftfilter as indicated on the website.</div>
<div> </div>
<div>This works very well for most of the subjects. However, for some of them, I still get the noise.</div>
<div> </div>
<div>My trials have a different lenght: between 500 ms until 3 seconds. </div>
<div> </div>
<div>This is the script I used. </div>
<div> </div>
<div> </div>
<div> filterfreqs = [49:1:51 99:1:101 149:1:151];</div>
<div>    </div>
<div>    cfg.dftfilter      =  'yes'; <br>    cfg.dftfreq      = filterfreqs;  <br>    cfg.padding    = 10;<br>    <br>    dataprepro_syn = ft_preprocessing(cfg);</div>
<div> </div>
<div> </div>
<div>The pad of 10 is the same as another already published study that used the same task.</div>
<div> </div>
<div> </div>
<div>Attached is a picture of the problem (blu is baseline, red is stimulus). This is the result of multitepering (dpss).</div>
<div> </div>
<div> </div>
<div>Thanks for your help,</div>
<div> </div>
<div>Davide</div>
<div> </div>
<div> </div>
<div><br clear="all"> </div>
<span><FMA14_power_spectra1.png></span>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></span>
</div>
<br></div></body></html>