<< Chapter < Page | Chapter >> Page > |
The programs are written to be consistent with Matlab's convention of normalizing for two samples per second sampling rate. The equationsmost of this book, however, are normalized for one sample per second.
To show the results of using this new design approach, two examples of multiband filter design are presented here. The first is a filter with astopband from to , a transition band from to , a passband with gain equalto 0.7 from to , a transition band from to , a passband with gain equalto 0.5 from to , a transition band from to , a stopband from to , a transition band from to , and a passband with gain equal one from to . This is called with the Matlab program by
h = fir3(51,[0 .2 .25 .5 .55 .7 .73 .85 .9 1],[0 0 .7 .7.5 .5 0 0 1 1])
and the amplitude response plot shown in [link] a. The response for length of is shown in Figures [link] b and in [link] c the zero locations are given.
As an example of how versatile this approach can be, a length-101 linear phase multiband FIR filter wasdesigned with different types of filtering being done in different bands. The signal with frequencies in the band from is differentiated, in the band from is rejected, in is Hilbert transformed, in is rejected, and is highpass filtered. In the transition bands between each of these processing bands, there is an optimal spline transition function. The amplitude response is shown in Figure 7d. This is a truly versatile multibanddesign technique with the only major limitation being that weighting is not possible. However, that limitation is removed in the next secession.
If the FIR filter design problem is posed as a weighted integral squared error approximation problem, a simple analytical design formula as in [link] or [link] is not possible (Recall that it is possible to easily introduce weights in the discrete approximation problem [link] ). In this section we consider a multiband generalization [link] of an approach which is a mixture of analytical formulas and numerical solution of Toeplitz plus Hankel matrices which have beenpresented in [link] , [link] , [link] .
The most general definition of the linear phase weighted least squares FIR filter design problem [link] , [link] , [link] defines the error measure as in Equation 10 from Constrained Approximation and Mixed Criteria by
where is the set of frequencies that contribute to the error.
We set up the conditions for minimizing the error in [link] for odd by using the same approach used in [link] which substitutes
from Equation 34 from FIR Digital Filters into [link] , differentiates in respect to each , and then sets it equal to zero to give
where we can obtain the from the by the scaling and shifting in Equation 35 from FIR Digital Filters . We denote this in matrix form by
Notification Switch
Would you like to follow the 'Digital signal processing and digital filter design (draft)' conversation and receive update notifications?