When you create a multirate filter that uses polyphase decomposition, polyphase lets you analyze the component filters individually by returning the components as rows in a matrix. First, create an interpolate-by-three filter.
hs = dsp.FIRInterpolator
hs =
dsp.FIRInterpolator with properties:
NumeratorSource: 'Property'
Numerator: [1x16 double]
InterpolationFactor: 3
Show all properties
In this syntax, the matrix p contains all of the subfilters for hm, one filter per matrix row.
p = polyphase(hs)
p = 3×6
-0.0013 -0.0107 0.1784 0.1784 -0.0107 -0.0013
-0.0054 0.0204 0.2406 0.0904 -0.0124 0
-0.0124 0.0904 0.2406 0.0204 -0.0054 0
Finally, using polyphase without an output argument opens the Filter Visualization Tool, ready for you to use the analysis capabilities of the tool to investigate the interpolator hm.
polyphase(hs)
The fvtool shows the coefficients of the subfilters. To see the magnitude response of the subfilters, click on the Magnitude Response button on the fvtool toolstrip.