MATLAB script containing a filter used by the main scripts.