Patch FILTFILT (Scripts) Publisher's description
from Jan Simon
If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column.
If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column. Internally FILTER is called twice, but this can be performed with a matrix directly to avoid the unnecessary overhead. For a [100 x 100] matrix FILTFILT is about 10 times faster with the patch!
The function PatchFILTFILT creates a copy of the original function and modifies the source such, that matrix arguments are processed directly. After patching the results and the speed are compared.
NOTE: PatchFILTFILT does not contain the original source of FILTFILT, which is property of The MathWorks(R)!
Tested with: Matlab 6.5.1, 7.7 (R2008b), 7.8 (R2009a). It should work with 7.0 to 7.6 also.
For Matlab 7.9 (R2009b) adjustments are needed and I will add this as soon as I will get access to R2009b.
Please contact me per email for problems or questions
System Requirements:MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall