%% Zero-phase Response of Discrete-Time Filter
% Create a dsp.FIRFilter System object™ and compute the zero-phase response of the filter.

Fs = 8000; 
Fcutoff = 2000;
FIRFilt = dsp.FIRFilter('Numerator', fir1(130,Fcutoff/(Fs/2)));

%
% The zerophase function computes the zero-phase response of the filter and displays the response using fvtool.

zerophase(FIRFilt)

% Copyright 2020 The MathWorks, Inc.