286 Practical MATLAB® Applications for Engineers
Example 3.12
Create the script fi le phasor_time_plots that returns the circuit diagram shown in Fig-
ure 3.67, the following plots:
- The phasor diagram for VS, VC, and VR
- vS(t) versus t, vR(t) versus t, and vC(t) versus t
0
− 100
− 50
20 40 60 80 100 120 140
Real Axis
0
50
100
150
200
250
300
Imaginary Axis
Phasor Diagram
FIGURE 3.66
Phasor diagram of Example 3.11.
R = 1 Ω
C = 1 μF
vs(t) = sin(1000*t) V
FIGURE 3.67
Network of Example 3.12.
MATLAB Solution
% Script file: phasor _ time _ plots
clf
VS = 1;
R = 1e3;
C = 1e-6;