Back to the main page.

Bug 2737 - ft_resampledata should support downsampling, i.e. without an anti-aliasing filter

Reported 2014-10-16 10:08:00 +0200
Modified 2019-08-10 12:28:53 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Eelke Spaak
Depends on:
See also:

Eelke Spaak - 2014-10-16 10:08:37 +0200

Eelke Spaak - 2014-10-16 10:09:17 +0200

I am implementing this, though I will refrain from adding it to the documentation for now, as it is a feature that should be used with care (i.e. only if the user actively applies a low-pass filter beforehand).

Eelke Spaak - 2014-10-16 10:19:28 +0200

bash-4.1$ svn commit ft_resampledata.m Sending ft_resampledata.m Transmitting file data . Committed revision 9905.

Jan-Mathijs Schoffelen - 2014-10-16 10:23:50 +0200

Hi Eelke, I think this option was already implicitly present, when selecting the correct interpolation method.

Eelke Spaak - 2014-10-16 10:27:10 +0200

(In reply to Jan-Mathijs Schoffelen from comment #3) Hi JM, the interpolation method only applied to resampling based on novel time axes. Now I implemented downsampling (using cfg.resamplemethod = 'downsample', where 'resample' is the default) based on cfg.resamplefs (which needs to be a proper divisor of the original Fs, of course).

Robert Oostenveld - 2019-08-10 12:28:53 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on