function Hd = Filter
%FILTER Returns a discrete-time filter object.
% MATLAB Code
% Generated by MATLAB(R) 9.7 and DSP System Toolbox 9.9.
% Generated on: 19-Nov-2019 17:55:22
% IIR Notching filter designed using the IIRNOTCH function.
% All frequency values are in Hz.
Fs = 250; % Sampling Frequency
Fnotch = 50; % Notch Frequency
BW = 5; % Bandwidth
Apass = 1; % Bandwidth Attenuation
[b, a] = iirnotch(Fnotch/(Fs/2), BW/(Fs/2), Apass);
Hd = dfilt.df2(b, a);
% [EOF]
%FILTER Returns a discrete-time filter object.
% MATLAB Code
% Generated by MATLAB(R) 9.7 and DSP System Toolbox 9.9.
% Generated on: 19-Nov-2019 17:55:22
% IIR Notching filter designed using the IIRNOTCH function.
% All frequency values are in Hz.
Fs = 250; % Sampling Frequency
Fnotch = 50; % Notch Frequency
BW = 5; % Bandwidth
Apass = 1; % Bandwidth Attenuation
[b, a] = iirnotch(Fnotch/(Fs/2), BW/(Fs/2), Apass);
Hd = dfilt.df2(b, a);
% [EOF]