<div dir="ltr">Hi Robert,<div><br></div><div>Thanks a lot.</div><div><br></div><div>Best,</div><div>Alessandro</div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno mer 17 ott 2018 alle ore 13:09 Robert Oostenveld <<a href="mailto:r.oostenveld@donders.ru.nl">r.oostenveld@donders.ru.nl</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Alessandro<div><br></div><div>If you would want to apply them in a different order, just call ft_preprocessing multiple times, once for every filter you want to apply.</div><div><br></div><div>best</div><div>Robert</div><div><br><div><br><blockquote type="cite"><div>On 17 Oct 2018, at 00:54, Alessandro Orticoni <<a href="mailto:alessandro.orticoni@gmail.com" target="_blank">alessandro.orticoni@gmail.com</a>> wrote:</div><br class="m_-399250399611715680Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>Yes, thanks both! You have been very helpful.</div><div><br></div><div>Best,</div><div>Alessandro</div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno mer 17 ott 2018 alle ore 00:17 Diego Lozano-Soldevilla <<a href="mailto:dlozanosoldevilla@gmail.com" target="_blank">dlozanosoldevilla@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Alessandro,</div><div dir="ltr"><br><div>As explained in the <a href="https://github.com/fieldtrip/fieldtrip/blob/master/ft_preprocessing.m#L55" target="_blank">help </a>of ft_preprocessing, the default filter order can be found in the low level functions:</div><div><div>fieldtrip/preproc/ft_preproc_bandpassfilter.m</div><div>fieldtrip/preproc/ft_preproc_bandstopfilter.m</div><div>fieldtrip/preproc/ft_preproc_highpassfilter.m</div><div>fieldtrip/preproc/ft_preproc_lowpassfilter.m</div></div><div><br></div><div>The filter order means something very different for the Butterworth (i.e. amount of samples used for the input-output recursion) </div><div><a href="https://github.com/fieldtrip/fieldtrip/blob/master/preproc/ft_preproc_bandpassfilter.m#L151" target="_blank">https://github.com/fieldtrip/fieldtrip/blob/master/preproc/ft_preproc_bandpassfilter.m#L151</a><br></div><div><br></div><div>or for the Finite Impulse Response (FIR) filter (i.e. length of the filter kernel).</div><a href="https://github.com/fieldtrip/fieldtrip/blob/master/preproc/ft_preproc_bandpassfilter.m#L235" target="_blank">https://github.com/fieldtrip/fieldtrip/blob/master/preproc/ft_preproc_bandpassfilter.m#L235</a></div><div dir="ltr"><br></div><div>For the ones interested to know more about what that number does for different filters, please check this example script:</div><div><a href="http://www.fieldtriptoolbox.org/example/determine_the_filter_characteristics" target="_blank">http://www.fieldtriptoolbox.org/example/determine_the_filter_characteristics</a><br></div><div><br></div><div>I hope that helps,</div><div><br></div><div>Diego</div><div dir="ltr"><br></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Tue, 16 Oct 2018 at 23:13, Alessandro Orticoni <<a href="mailto:alessandro.orticoni@gmail.com" target="_blank">alessandro.orticoni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>I would like to ask you just a question: which is the default order of the filters implemented by ft_preprocessing? I cannot find it anywhere.</div><div><br></div><div>Thanks a lot,</div><div>Alessandro Orticoni </div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div></div></div></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br><a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>