%% Design a dsp.FIRInterpolator System object
% Set the 'SystemObject' flag to true in the designMultirateFIR function to design a multirate filter object. The design parameters specified in the function determine the type of System object the function designs.
% In this example, the function designs a polyphase FIR interpolator System object™. For more details, see dsp.FIRInterpolator.
% Create a dsp.FIRInterpolator object with the interpolation factor equal to 5, transition width equal to 0.01, and stopband attenuation equal to 60 dB. Set the 'SystemObject' flag to true to design a multirate filter object.

firInterp = designMultirateFIR(5,1,0.01,60,'SystemObject',true);
fvtool(firInterp)

% Compute the cost of implementing the filter.

cost(firInterp)

% Measure the frequency response characteristics of the filter object.

measure(firInterp)

%
% Copyright 2019 The MathWorks, Inc.