Type of linear phase FIR filter
t = firtype(b)
t = firtype(hd)
t = firtype(hm)
t = firtype(hs)
t = firtype(hm) determines the type of the multirate filter object hm. The filter must be real and have linear phase. When hm has multiple sections, all sections must be real FIR filters with linear phase. In this case, t is a cell array containing the filter type of each section. You must have the DSP System Toolbox™ software to use this syntax.
Filter coefficients for the FIR filter, specified as a double- or single-precision real-valued row or column vector.
dfilt filter object.
Multirate mfilt filter object. Requires DSP System Toolbox.
Filter System object. Requires DSP System Toolbox.
The following Filter System objects are supported by this analysis function:
Filter type. t is either 1, 2, 3, or 4. These types are defined as follows:
Determine the filter type for an FIR filter designed using the window method. Plot the impulse response.
b1 = fir1(5,0.5); t = firtype(b1) stem(0:5,b1); set(gca,'xtick',0:5)
Determine the type of the default interpolator for L=4. Requires DSP System Toolbox .
l = 4; hm = mfilt.firinterp(l); t = firtype(hm)