PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

Alternating Current Analysis 301


C = 0.01 μF
V= 5^0 °
L = 30 mH

R 1 = 47 kΩ

R 2 = 270 Ω

Vc

I
IC

IL

FIGURE 3.80
Network of Example 3.19.

Example 3.19

Create the script fi le RLC_parallel_ analysis that returns the following plots of the circuit
shown in Figure 3.80, over the range 1000 Hz ≤ f ≤ 20,000 Hz in linear increments of
△f = 250 Hz:


  1. Figure(1)
    a. |ZT(ω)| v e r s u s ω
    b. ∠ZT(ω) versus ω
    c. |YT(ω)| v e r s u s ω
    d. ∠YT(ω) versus ω

  2. Figure(2)
    a. |I(ω)| v e r s u s ω
    b. ∠I(ω) versus ω
    c. |Vc(ω)| v e r s u s ω
    d. ∠Vc(ω) versus ω

  3. Figure(3)
    a. |Ic(ω)| v e r s u s ω
    b. ∠Ic(ω) versus ω
    c. |IL(ω)| v e r s u s ω
    d. ∠IL(ω) versus ω
    where ZT is the impedance seen by the source.


MATLAB Solution
% Script file: RLC _ parallel _ analysis
deg = 180/pi;
V= 5;
R1 = 47e3;
R2 = 270;
C = 0.01e-6;
L = 30e-3;
f = [1000:250:20e3];
w = 2*pi.*f;
XC =1./(j*w.*C);
Free download pdf