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!
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.