636 Practical MATLAB® Applications for Engineers
Note that the output of the Cheby type-1 fi lter is truly an HPF (only the frequency
w = 0.5 is present), whereas the output of the Cheby type-2 fi lter is similar to the compos-
ite input signal in which the two input frequencies are present.Example 6.12Example 6.12 involves an FIR fi lter, type 1 with symmetry, and length N = odd. Obtain
by hand expressions of the amplitude and phase of H(ejW), verifying that the phase is
linear if the impulse response sequence is given byh(n) = [.5 1 .5] for n = 0, 1, and 2ANALYTICAL SolutionHejW hnz e e
nn
()()njWjW..
02
∑ 05 1^052He e e e
()[.jW 05 jW 05. ]jW jW
He We
()[ cos]jW 1 jW
He()jW 1forcosW W ∠He W
()jW for
FIGURE 6.62
Plots of the discrete input and the fi lter’s outputs of Example 6.11.
5 50Input sequence
01020304050607080905 50Output Chev 1
0 1020304050607080 905 50Output Chev 2
nT0102030405060708090