

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Problem 1.
Load the data file named ‘hw1.txt’ from the ECE 472 website into a MATLAB workspace using the commands:
load hw1.txt t = hw1(:,1); v = hw1(:,2); i = hw1(:,3);
This data file contains a full 60-Hz cycle of the voltage and current waveforms of a 26-W compact fluorescent lightbulb sampled with a frequency fs = 12 kHz. Each of the 201 rows lists three data points representing time, voltage, and current, respectively, at the given instant of time.
(a) Write a MATLAB script to plot the normalized voltage and current waveforms on the same graph using the MATLAB command:
plot(t,v/100,t,i),grid
(b) Assuming that the voltage and current waveforms can be represented by the following functions
v(t) = av 1 cos ωt + bv 1 sin ωt =
2 V 1 sin(ωt + θv 1 ) i(t) = ai 1 cos ωt + bi 1 sin ωt + ai 3 cos 3ωt + bi 3 sin 3ωt +... =
2 V 1 sin(ωt + θi 1 ) +
2 V 3 sin(3ωt + θi 3 ) +...
find av 1 , bv 1 , V 1 , θv 1 (deg), ai 1 , bi 1 , I 1 , and θi 1 (deg).
(c) Plot the fundamental waveform of the current on the same graph as the original voltage and current waveforms using the MATLAB commands
hold off plot(t,v/100,t,i,t,i1),grid title{’ ... ’) xlabel(’Time (s)’) ylabel(’ ... ’) print -deps plots
(d) Verify that the average power P consumed by the fluorescent lightbulb is approximately equal to 26 W using the following two methods
P =
∫ (^) T
0
v(t)i(t) dt P = V 1 I 1 cos(θv 1 − θi 1 )
Hint: Use the trapezoidal function ‘trapz’ in MATLAB:
P = trapz(t,v.*i)/T;
(e) Find the rms values of the voltage and current waveforms using the definitions
√ 1 T
∫ (^) T
0
v^2 (t) dt
√ 1 T
∫ (^) T
0
i^2 (t) dt
(f) Find the power factor (PF), the displacement power factor (DPF), the current distortion factor (IDF) and the current total harmonic distortion (ITHD) from the following definitions
PF =
DPF = cos(θv 1 − θi 1 )
IDF =
√( I I 1
) 2 − 1 =
√( 1 IDF
) 2 − 1
(g) Verify that
PF = IDF × DPF =
√ 1 + (ITHD)^2