[FieldTrip] Low-pass filter before resampling?

Eelke Spaak eelke.spaak at donders.ru.nl
Thu Dec 12 09:48:15 CET 2013

Oops, I was looking in the wrong part of the code for ft_resampledata
(usetime = 1, while I should have been looking at usefsample = 1).
There, it is clear that Matlab's resample() is being used, which tells
me in the documentation "resample applies an anti-aliasing (lowpass)
FIR filter to x during the resampling process. It designs the filter
using firls with a Kaiser window." So, it is definitely not needed.

Sorry for filling up your inboxes :)

On 12 December 2013 09:45, Eelke Spaak <eelke.spaak at donders.ru.nl> wrote:
> Hi all,
> A quick question: in your experience, is it necessary (or advisable)
> to explicitly apply a low-pass filter (using e.g. ft_preprocessing)
> before calling ft_resampledata? I previously assumed ft_resampledata
> (or the low-level implementation, pchip) was taking care of this, but
> looking in the code I cannot find evidence for or against my
> assumption.
> Thanks,
> Eelke

More information about the fieldtrip mailing list