PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

604 Practical MATLAB® Applications for Engineers


Example 6.2

Given the fi rst-order analog HPF shown in the circuit diagram of Figure 6.31, evaluate
by hand the following:
a. The transfer function H(w) = Vo(w)/ Vi(w)
b. Obtain expressions for H(w) and ∠H(w)
Create the script fi le HP_fi lter_analysis that returns the following plots:
c. H(f) versus f and ∠H(f ) versus f using the MATLAB function freqs
d. H(f)dB versus f and ∠H(f) versus f using a semilog scale and the MATLAB function
freqs

e. Bode of H(w) and ∠H(w) over the range − (^5) ( 1 /(R C)) ≤ w ≤ (^5) ( 1 /(R C))
f. Bode of H(w) and ∠H(w) with no argument (w)
g. H(f) versus f
∠H(w) versus f
H(f)dB versus f (semilog scale)
∠H(f) versus f (semilog scale)
using standard circuit techniques.
FIGURE 6.30
Plots of H(f), ∠H(f), H(f)dB, and ∠H(f ) using standard circuit techniques of Example 6.1.
0
mag. versus freq.
mag. (in db) versus freq.
phase versus freq.
phase versus freq.
frequency in Hrz frequency in Hrz
0
0.2
magnitude
magnitude (db)
0.4
0.6
0.8
1
 5 5  5 5
 15
 10
 5
0
phase (in degrees)
phase (in degrees)
 80
 60
 40
 20
0
 100
 50
0
50
100
0
104


104
104
106 102 104 106

Free download pdf