FILTFILTHD provides zero-phase forwards/backwards filtering. Unlike MATLAB's filtfilt, FILTFILTHD accepts dfilt filter objects on input.
This allows multiple stage filters from fdatool to be used.
A selection of end-effect minimization methods are supported.
Great idea. Wondering why ML did not do this. Seems pretty obvious. Filter objects are much easier to work with. This should have been a no brainer for ML.
Very nice!!! thanks
However, I am running in trouble when using it with parfor. Does anyone know why?
A lovely little program that solved my problem!
This function is sensational! I've been learning how to use filter objects, and really like the concept. I was discouraged, therefore, when I realized that the standard 'filtfilt' function only works with the transfer function form. This routine is precisely what I needed!
Excellent! I hope that Mathworks incorporates this functionality into the dfilt class in the next release of the Signal Processing Toolbox.
Provides a solution to the limited resolution of the matlab transfer function filter forms when calling filtfilt. Filter objects can be created with zero pole gain prototypes, converted to second order sections and avoid the numerical precision problems associated with [b,a] transfer functions but allow use of filtfilt to eliminate phase distortion.
exactly what i needed