MATLAB: Distorted time domain signal for high pass butterworth filter designed using ‘butter’ command and filtered using ‘filter’ command

Signal Processing Toolbox

Why does the filtered samples of my high pass filter (12th order) look distorted in the time domain when I use the 'filter' command? The filter is designed with the butter command with a very low cut-off frequency of 0.65Hz. The frequency of the signal is 25Hz.

Best Answer

The butter worth filter has non-zero phase distortion characteristics which is observed in the time domain. A workaround to obtain signals with zero-distortions would be to use the 'filtfilt' command instead. Please find the attached script which shows an example comparision between the two.
Related Question