MATLAB: How to compensate for the delay introduced by an IIR notch filter

delay compensationecgiir notchpowerline interference

Hello, I'm using an IIR notch filter(using iirnotch command) to remove the powerline interference. Will there be a delay due to this in my signal? If so, how can I compensate for this?

Best Answer

https://in.mathworks.com/help/signal/ref/filtfilt.html