Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

IMPORTANT: The Open Ephys GUI documentation has migrated to a new site – please visit https://open-ephys.github.io for the most up-to-date information.

Function

Filters the data between the specified low cutoff and high cutoff frequencies (Hz) using a 2nd-order Butterworth filter. 

...

To obtain the same filter in MATLAB, you can use "

  [b, a] = butter(2, [lowcut highcut]/(samplerate/2));

  y = filter(b, a, x); % only filters in the forward direction


where lowcut and highcut are low and high cutoff frequencies (Hz))".  This , samplerate is the sampling frequency (Hz), x is the unfiltered data, and y is the filtered data.

This is correct despite the fact that MATLAB's documentation claims it should produce a 4th-order filter (it uses a different convention).

...