PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB
630 Practical MATLAB® Applications for Engineers Example 6.9 Create the script fi le cheby_HPF that returns the coeffi cients of ...
Analog and Digital Filters 631 disp(Pz2) disp(‘The denominator coefficients are:’); disp(Qz2) disp(‘**************************** ...
632 Practical MATLAB® Applications for Engineers ******************************************** *****FILTERS TRANSFER FUNCTIONS ** ...
Analog and Digital Filters 633 Example 6.10 Test the Butterworth LP digital fi lter of Example 6.7 by applying as an input the s ...
634 Practical MATLAB® Applications for Engineers Example 6.11 Create the script fi le Cheby_1_2 that tests the design of the Che ...
Analog and Digital Filters 635 ylabel(‘Input:DC component’); subplot(3,1,2) plot(n*T,f1); ylabel(‘Input:2cos(0.2 t)’); subplot(3 ...
636 Practical MATLAB® Applications for Engineers Note that the output of the Cheby type-1 fi lter is truly an HPF (only the freq ...
Analog and Digital Filters 637 Example 6.13 Given the following impulse response sequence: hn = [−5 2 3 4 2 −1 3 −1 2 4 3 2 −5] ...
638 Practical MATLAB® Applications for Engineers aa = a(1:7)’; [nn aa] disp(‘*********************’) m = 0:1:mid; w = -pi:.01*pi ...
Analog and Digital Filters 639 MATLAB Solution % Script file: filter _ wind format long hnk = fir1(64,.4,kaiser(65,3.5)); [h1,w1 ...
640 Practical MATLAB® Applications for Engineers hnham = fir1(64,.4); [h4,w4] = freqz(hnham,1,256); magham = 20*log10(abs(h4)); ...
Analog and Digital Filters 641 Example 6.15 Create the script fi le multiban that returns the realization of a digital multiband ...
642 Practical MATLAB® Applications for Engineers Example 6.16 Rerun Example 6.15 given by the script fi le multiban for the fi l ...
Analog and Digital Filters 643 Example 6.17 Create the script fi le butt_implem that returns a third-order analog Butterworth LP ...
644 Practical MATLAB® Applications for Engineers MATLAB Solution % Script file : butt _ implem [z,p,k] = buttap(3); disp(‘ ***** ...
Analog and Digital Filters 645 The transfer function is given by H(s) 1 sss^32221 (6.4) Equating the coeffi cients of Equat ...
646 Practical MATLAB® Applications for Engineers The Butterworth LPF satisfying the given specs is shown in Figure 6.71. % frequ ...
Analog and Digital Filters 647 MATLAB Solution % Script file: IIR-yul % IIR/YULE-WALKER % for N = 4, 6, 8, and 10 f = [0:.1:1.0] ...
648 Practical MATLAB® Applications for Engineers title(‘Order=8’) ylabel(‘Magnitude(H)’); xlabel(‘W in rad’) subplot(2,2,4) plot ...
Analog and Digital Filters 649 Example 6.19 Create the script fi le FIR_IIR that returns the magnitude plots of a 17th-order nor ...
«
27
28
29
30
31
32
33
34
35
36
»
Free download pdf