<div>Dear Jan-Mathijs,</div>
<div> </div>
<div>Attached is the picture of a subject where I applied you advice.</div>
<div> </div>
<div>As you can see the problem is still there. Maybe I can solve it by changing the filter order (I am using defaults values).</div>
<div> </div>
<div>However I am thinking to use a band stop filter.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Davide<br><br></div>
<div class="gmail_quote">On Tue, Oct 4, 2011 at 3:18 PM, jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="WORD-WRAP: break-word">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>
<div></div>
<div class="h5">
<div>On Oct 4, 2011, at 3:05 PM, Davide Rivolta wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">
<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></div></div><span><FMA14_power_spectra1.png></span>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote></div><br>
<div><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<div style="WORD-WRAP: break-word"><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<div style="WORD-WRAP: break-word"><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<div style="WORD-WRAP: break-word">
<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" target="_blank">J.Schoffelen@donders.ru.nl</a></div>
<div>Telephone: <a href="tel:%2B31-24-3614793" target="_blank" value="+31243614793">+31-24-3614793</a></div></div></span></div></span></div></span></span></div><br></div></div><br>_______________________________________________<br>
fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Davide Rivolta, PhD<br><br>