PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB
610 Practical MATLAB® Applications for Engineers FIGURE 6.37 Circuit diagram of Example 6.3. Vi(s) C = 1F Vo(s) L = 1H R = 1 Ω T ...
Analog and Digital Filters 611 mag1= abs(H1); phase1=angle(H1); figure(1) subplot(1,2,1) plot(w,mag1) xlabel(‘frequency in rad/s ...
612 Practical MATLAB® Applications for Engineers ylabel(‘Magnitude’); title(‘Magnitude of H(w) vs. w [using lp2lp]’); subplot(1, ...
Analog and Digital Filters 613 disp(‘Coefficients of the denominator of the transf. function [butter/wc=2rad/sec]’) disp(Ql) tf( ...
614 Practical MATLAB® Applications for Engineers ************************************************** Solution to part (f) Coeffic ...
Analog and Digital Filters 615 FIGURE 6.39 Plots of H(w) of Example 6.3 with R = 1 and L = C = 1/2. 1.2 0 50 100 150 1.1 0 ...
616 Practical MATLAB® Applications for Engineers FIGURE 6.41 Normalized LP Butterworth fi lter plots of H(w) of Example 6.3. Pha ...
Analog and Digital Filters 617 The implementation of a Butterworth normalized (wc = 1 rad/s) LPF prototype using electrical comp ...
618 Practical MATLAB® Applications for Engineers w =-5*a:10000:5*a; t =linspace(0,2e-3,1000); f0 = 1000; % input frequencies f1 ...
Analog and Digital Filters 619 FIGURE 6.45 Input and output plots of the LPF of Example 6.4. 5 5 0 frequency1000 Hertz Amplit ...
620 Practical MATLAB® Applications for Engineers Example 6.5 Let Hs Vs Vs as as o i () () () 2 2 1 1 be the transfer func ...
Analog and Digital Filters 621 title(‘Phase of H(w) vs. w’) figure(2);bode(num,den); title(‘Bode plots:magnitude and phase’) fig ...
622 Practical MATLAB® Applications for Engineers Example 6.6 Create the script fi le butt_chev that returns the magnitude and ph ...
Analog and Digital Filters 623 MATLAB Solution % Script file: butt _ chev Rp = 1 ; % in db (passband ripple) Rs = 1 ; % in db (s ...
624 Practical MATLAB® Applications for Engineers phase3=angle(h3); subplot(1,3,3); plot(w,phase3);axis([0 3 -2 2]); xlabel(‘freq ...
Analog and Digital Filters 625 Example 6.7 Create the script fi le analog_digital that returns the following: a. The third-order ...
626 Practical MATLAB® Applications for Engineers phase2=angle(h2)*180/pi; plot (w, phase2) title (‘Phase of LPF with wc=3’) xlab ...
Analog and Digital Filters 627 FIGURE 6.54 Magnitude and phase plots of the analog denormalized LPF of part (b) of Example 6.7. ...
628 Practical MATLAB® Applications for Engineers FIGURE 6.55 Zero/pole plot of the discrete IIR transfer function H(z) for wc = ...
Analog and Digital Filters 629 Example 6.8 Create the script fi le direc_butt_disig that solves Example 6.7 by directly obtainin ...
«
27
28
29
30
31
32
33
34
35
36
»
Free download pdf