286 Practical MATLAB® Applications for Engineers
Example 3.12Create 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− 5020 40 60 80 100 120 140
Real Axis050100150200250300Imaginary AxisPhasor DiagramFIGURE 3.66
Phasor diagram of Example 3.11.
R = 1 ΩC = 1 μFvs(t) = sin(1000*t) VFIGURE 3.67
Network of Example 3.12.
MATLAB Solution
% Script file: phasor _ time _ plots
clf
VS = 1;
R = 1e3;
C = 1e-6;