EES351 2020 Postmidterm HW
EES351 2020 Postmidterm HW
Instructions
(a) This assignment has 5 pages.
(d) (1 pt) Write your first name and the last three digits of your student ID in the spaces provided on the upper-right corner of this page.
s1(t) s2(t)
V V
Tb
t t
0 0 Tb
−V
(a)
Figure 7.1: Signal set for Question 1
φ 1(t) φ 2(t)
(a) Find the energy in each signal.
1 Tb 1 Tb
Tb
t t
0 7-1 0 Tb
−1 Tb
(b)
EES 351 HW 7 — Due: October 28, 11:59 PM 2020/1
(e) Are the two signals s1 (t) and s2 (t) orthogonal? (Two signals are orthogonal if their
inner product is 0.)
Problem 2. (Power Calculation) For each of the following signals g(t), find (i) its corre-
2
2
sponding power Pg = |g (t)| , (ii) the power Px = |x (t)| of x (t) = g (t) cos (10t), and
(iii) the power Py = |y (t)|2 of y (t) = g (t) cos (50t)
7-2
EES 351 HW 7 — Due: October 28, 11:59 PM 2020/1
(b) g (t) = 3 cos (10t + 30◦ ) + 4 cos (10t + 120◦ ). (Hint: First, use phasor form to combine
the two components into one sinusoid.)
(c) g (t) = 3 cos (10t) + 3 cos (10t + 120◦ ) + 3 cos (10t + 240◦ )
7-3
EES 351 HW 7 — Due: October 28, 11:59 PM 2020/1
Extra Question
Here is an optional question for those who want more practice.
Problem 3. Consider a signal g(t). Recall that |G(f )|2 is called the energy spectral
density of g(t). Integrating the energy spectral density over all frequency gives the signal’s
total energy.R Furthermore, the energy contained in the frequency band I can be found from
the integral I |G(f )|2 df where the integration is over the frequencies in band I. In particular,
if the band is simply an interval of frequency from f1 to f2 , then the energy contained in
this band is given by Z f2
|G(f )|2 df. (7.1)
f1
(b) Figure 6.2 define the main lobe of a sinc pulse. It is well-known that the main lobe
of the sinc function contains about 90% of its total energy. Check this fact by first
computing the energy contained in the frequency band occupied by the main lobe and
then compare with your answer from part (a).
Hint: Find the zeros of the main lope. This give f1 and f2 . Now, we can apply (6.1).
MATLAB or similar tools can then be used to numerically evaluate the integral.
7-4
EES 351 sinc function
HW 7 — Due: October 28, 11:59 PM 2020/1
Main lobe
(null to null)
(c) Suppose we want to include more energy by considering wider frequency band. Let
this band be the interval I = [−f0 , f0 ]. Find the minimum value of f0 that allows the
band to capture at least 99% of the total energy in g(t).
7-5
Name ID3
Instructions
(a) This assignment has 11 pages.
(c) (1 pt) Write your first name and the last three digits of your student ID in the spaces provided on the upper-right corner of this page.
Problem 1. Consider the impulse train G(f ) shown on the right in Figure 8.1. Plot g(t).
1 1 1 1 1 1 1
𝑡
𝑓
2 2 1 6 4 2 0 2 4 6
8-1
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
(a) Suppose the message is m(t) = 4 cos(10πt) and the transmitted signal is
Find the value of A which yields the modulation index in each part below.
(i) µ = 50%
(ii) µ = 100%
(iii) µ = 150%
(b) Suppose the message is m(t) = α cos(10πt) and the transmitted signal is
Find the value of α which yields the modulation index in each part below.
(i) µ = 50%
(ii) µ = 100%
(iii) µ = 150%
8-2
th e follow ing.
(a) Sketch the spectrum of m (c).
(b) Sketch the spec trum of the DSB-SC signal m(c) cos IO,OOO.rrt.
(c) Identify the upper sideband (USB ) and the lower s ideband (LSB) spectra.
4.2-2 Repeat Prob. 4.2-1 if (i) m(t ) = sine ( lOOm); (ii) m(t) = ( l + t 2 )- 1; (iii) m(t) = e- IO it- l l _
EES 351 Observe thatHWe- 10 lt -811—
is e-Due: November
IO irl delayed by l second.11, 11:59
For the PM
last case yo u need to consider both2020/1
th e amplitude and the phase spectra.
4.2-3You are asked to design a DSB-SC modulator to generate a mod ulated signal km(l) cos (we t +8),
Extra Questions where m(t) is a signal band -limited to B Hz. Figure P4 .2-3 shows a DSB-SC modu lator ava il able
in the stoc kroo m. The ca tTi er generato r ava il able ge nerates not cos We t, but cos 3 We i . Exp lain
whether you wo uld be able to generate the desired signal using onl y thi s equip ment. You may use
Here are someany
optional
kind of filquestions
ter yo u li k~ . for those who want more practice.
-8 B
J- -
(a) (b)
Figure
4.2-4 You are asked to design a DSB-SC 8.2: Problem
modulator to generate 4a modul ated signal km(l ) cos wet with
the carrier frequency f e = 500kHz (we = 2.rr x 500, 000). The follo wing equipment is ava ilable
in the stockroom: (i) a signal generator of frequency I 00 k.H z; (ii) a ring modulator; (iii ) a bandpass
fi Iter tuned to 500 k.Hz.
(a) A real-valued signal r(t) that is even and periodic with period T can be expanded 0
using Fourier series into
(i) Is it periodic?
(ii) Is it even?
(iii) Expand r(t) = cos3 (2πfc t) into a linear combination of cos(2π(nfc )t) as in (8.1)
above.
8-3
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
(c) Determine the signal spectra at points (b) and (c) in Figure 8.2, and indicate the
frequency bands occupied by these spectra.
8-4
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
(e) Would this scheme work if the carrier generator output were cos2 (2πfc t)? Explain.
8-5
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
Problem 5. Consider the basic DSB-SC transceiver with time-delay channel presented in
class. Recall that the input of the receiver is
√
x (t − τ ) = m (t − τ ) 2 cos (ωc (t − τ ))
F
where m(t) −
)−
−*− M (f ) is bandlimited to B, i.e., |M (f )| = 0 for |f | > B. We also assume
−1
F
that fc B.
√ √
(a) Suppose that, at the receiver, we multiply by 2 cos ((ωc t) − θ) instead of 2 cos (ωc t)
as illustrated in Figure 8.3. Assume
1, |f | ≤ B
HLP (f ) =
0, otherwise.
v t
x t H LP f m̂ t
2 cos ct
8-6
HWR
HWR
(b) Use√the same assumptions as part (a). However, at the receiver, instead of multiplying
by 2 cos ((ωc t) − θ), we pass x(t − τ ) through a half-wave rectifier (HWR) as shown
in Figure 8.4b.
Make an extra assumption that m(t) ≥ 0 for all time t and that the half-wave rectifier
input-output relation is described by a function f (·):
x, x ≥ 0,
f (x) =
0, x < 0.
8-7
b. (5 pt) Sketch the spectrum of the DSB-SC signal m t cos 5,000 t . No
explanation is needed.
7. (8 pt) Suppose m t
M f is bandlimited to W, i.e., M f 0 for
f W
F
Problem 6 .(M2011Q7).
Consider the Suppose −−
followingmDSB-SC
(t) )−*−transceiver.
M (f ) is bandlimited to W , i.e., |M (f )| = 0
−1 F
for |f | > W . Consider a DSB-SC transceiver shown in Figure 8.5.
Transmitter (modulator)
x t
m t Delayed by
cos ct
x t
v t
FWR H LP f y t
Receiver (demodulator)
(a) (Questions
Recall that theonhalf
start the -wave rectifier input-output relation is described by a function
nextpage.)
x, x ≥ 0,
fHW R (·) : fHW R (x) = We have seen in Problem 5b that when the
0, x < 0.
8-8
Page 5 of 12
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
v (t) = x (t − τ ) × gHW R (t − τ )
(i) The receiver in this question uses full-wave rectifier. Its v(t) can be described in
a similar manner; that is
v (t) = x (t − τ ) × gF W R (t − τ ) .
Find gF W R (t). Hint: gF W R (t) = c1 × gHW R (t) + c2 for some constants c1 and c2 .
Find these constants.
8-9
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
(ii) Recall that the Fourier series expansion of gHW R (t) is given by
1 2 1 1 1
gHW R (t) = + cos ωc t − cos 3ωc t + cos 5ωc t − cos 7ωc t + . . . .
2 π 3 5 7
Problem 7. Would the scheme in Problem 4 work if the carrier generator output were
cosn ωc t for any integer n ≥ 2?
8-10
EES 351 HW 8 — Due: November 11, 11:59 PM 2020/1
Problem 8 (M2011Q5). In this question, you are provided with a partial proof of an im-
portant result in the study of Fourier transform. Your task is to figure out the quantities/-
expressions inside the boxes labeled a,b,c, and d.
P∞
We start with a function g(t). Then, we define x (t) = g (t − `T ). It is a sum that
`=−∞
involves g(t). What you will see next is our attempt to find another expression for x(t) in
terms of a sum that involves G(f ).
∞
P
To do this, we first write x(t) as x (t) = g (t) ∗ δ (t − `T ). Then, by the convolution-
`=−∞
in-time property, we know that X(f ) is given by
∞
X
X (f ) = G (f ) × a δ f+ b
`=−∞
R∞
We can get x(t) back from X(f ) by the inverse Fourier transform formula: x (t) = X (f ) ej2πf t df .
−∞
After plugging in the expression for X(f ) from above, we get
Z∞ ∞
X
x (t) = ej2πf t G (f ) a δ f+ b df
−∞ `=−∞
Z∞ ∞
X
= a ej2πf t G (f ) δ f + b df.
−∞ `=−∞
We can now evaluate the integral via the sifting property of the delta function and get
∞
c
X
x (t) = a e G d .
`=−∞
8-11
Name ID3
Instructions
(a) This assignment has 9 pages.
(c) (1 pt) Write your first name and the last three digits of your student ID in the spaces provided on the upper-right corner of this page.
√
Problem 1. Find the instantaneous frequency of the signal g(t) = 3 2 cos (12t3 + t2 )
(a) at time t = 0
(b) at time t = 2
9-1
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
Problem 2. Recall that, in QAM system, the transmitted signal is of the form
√ √
xQAM (t) = m1 (t) 2 cos (2πfc t) + m2 (t) 2 sin (2πfc t) .
where E(t) ≥ 0 and φ(t) ∈ (−180◦ , 180◦ ]. (This shows that QAM can be expressed as a
combination of amplitude modulation and phase modulation.)
Consider m1 (t) and m2 (t) plotted in Figure 9.1.
Draw the corresponding E(t) and φ(t).
m1(t)
1
t
-1
1
t
m2(t)
-1
9-2
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
Problem 3. Consider the message m(t) along with the carrier signal cos(2πfc t + φ) plotted
in Figure 9.2. Note that m(1.5) = 40.
50
m(t)
0
-50
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
cos(2 fc t + )
1
0
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
100
xAM(t)
0
-100
Figure 9.2: The message and the carrier signals for Problem 3.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
(a) 1Find the carrier frequency fc from the plot. (Hint: It is an integer.)
xFM(t)
0
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
(b) Sketch the following signals. Make sure thatt (the unspecified parameter(s) are selected
x 10
-3
1such that) the important “features” of the graphs can be seen clearly.
xPM(t)
0
(i) xAM (t) = (A + m (t)) cos (2πfc t + φ) whose modulation index µ = 100%.
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
Rt
(ii) xFM (t) = A cos 2πfc t + φ + 2πkf m (τ )dτ . Assume m(t) = 0 for t < 0.
−∞
9-3
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
π
(iii) xPM (t) = A cos (2πfc t + φ + kp m (t)) with kp = mp
.
where fc = 5 [kHz], A = 1, and kf = 75. The message m(t) is shown in Figure 9.3.
40
20
m(t)
-20
-40
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
1
cos(2 fc t + )
0.5
xFM(t)
-0.5
(b) Find the
-1
width W in Figure 9.4.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
t -3
x 10
9-4
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
𝑋FM 𝑓
f
f1 f2 f3
BW W
Extra Questions
Here are some optional questions for those who want more practice.
Problem 5. Recall that, in QAM system, the transmitted signal is of the form
√ √
xQAM (t) = m1 (t) 2 cos (2πfc t) + m2 (t) 2 sin (2πfc t) .
9-5
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
An error in the phase or the frequency of the carrier at the demodulator in QAM will result in loss
and interference between the two channels (cochannel interference).
In this problem, show that
n √ o
LPF xQAM (t) 2 cos ((ωc + ∆ω) t + δ) = m1 (t) cos ((∆ω) t + δ) − m2 (t) sin ((∆ω) t + δ)
n √ o
LPF xQAM (t) 2 sin ((ωc + ∆ω) t + δ) = m1 (t) sin ((∆ω) t + δ) + m2 (t) cos ((∆ω) t + δ) .
9-6
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
(b) Suppose m1 (t) = cos(2πBt) and m2 (t) = 2 sin(2πBt). Let fc = 5 and B = 2. Use MATLAB to
plot the corresponding E(t) and φ(t) from t = 0 to t = 5 [sec]. (Hint: the function angle or
atan2 will be helpful here.)
9-7
The plot for part (a):
F
−−
Problem 9. Consider a (complex-valued) baseband signal xb (t) )−−*
−
− Xb (f ) which is band-limited
F −1
to B, i.e., |Xb (f )| = 0 for |f | > B. We also assume that fc B.
9-8
EES 351 HW 9 — Due: November 25, 11:59 PM 2020/1
9-9
Solution
Parts a and b consider cosine with no phase shift. Therefore, we will appply the folding technique.
Parts c and d consider complex expo. Therefore, we will appply the tunneling technique.
Derivation of the "folding" and the "tunneling" techniques
First, we need to look at the freq. domain representation of the given signal to find the maximum non-zero
frequency B.
0.5
−0.5
−1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Seconds
1.5
Magnitude
0.5
0
−500 −400 −300 −200 −100 0 100 200 300 400 500
Frequency [Hz]
Problem 4: Aliasing and periodic square wave
(a)
-1
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Seconds
0.4
(b) sgn(cos𝜔0 𝑡) = 2 × 1[cos𝜔0 𝑡 ≥ 0] − 1. So, a = 2 and b = -1.
0.3
(c)
Magnitude
0.2
(c.i) From
0.1
1 2 1 1 1
1[cos𝜔0 𝑡 ≥ 0] = 2 + 𝜋 (cos𝜔0 𝑡 − 3 cos3𝜔0 𝑡 + 5 cos5𝜔0 𝑡 − 7 cos7𝜔0 𝑡 + ⋯ ),
0
-500 -400 -300 -200 -100 0 100 200 300 400 500
and Frequency [Hz]
we have
4 1 1 1
𝑔(𝑡) = sgn(cos𝜔0 𝑡) = 𝜋 (cos𝜔0 𝑡 − 3 cos3𝜔0 𝑡 + 5 cos5𝜔0 𝑡 − 7 cos7𝜔0 𝑡 + ⋯ ).
where 𝜔0 = 2𝜋𝑓0 .
(c.ii)
(c.ii.i) Theoretically, 𝐺(𝑓) should have spikes (impulses) at all the odd-integer
multiples of f0 Hz. The center spikes (at f0) should be the largest among them.
Here, 𝑓0 = 10. Therefore, the largest spike occurs at ±10 Hz, followed by smaller
spikes at all the odd-integer multiples (i.e., at ±30, ±50, ±70, etc).
(c.ii.ii) The sinc function is simply the Fourier transform of the rectangular windows.
Because the area of the rectangular window is 1×2 = 2, its Fourier transform
(which is a sinc function) has its peak value of 2. This is further scaled by a factor
of ½ from the cosine. Therefore, each “impulse” (“sinc”) that we see should have
its height being the same as the coefficient of corresponding cosine. For
4
example, at f0, the coefficient of the cosine is 𝜋. Therefore, we expect the
4
height of the “impulse” at f0 to be 𝜋 1.2732.
The theoretical values for the height of other impulses is shown by the pink
circles in the plot. We see that our predicted values match the plot quite well.
0.5
-0.5
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Seconds
1.5
Magnitude
0.5
0
-500 -400 -300 -200 -100 0 100 200 300 400 500
Frequency [Hz]
(d) Here, we also shows the time-domain plots as well. In the time domain, the switching
between the values -1 and 1 should be faster as we increase f0. All the plots here are
adjusted so that they show 10 periods of the “original signal” in the time domain. (This is
done so that the distorted shape (if any) of the waveform in the time domain is visible.)
(d.i) From the plots, as we increase f0 from 10 to 20 Hz, the locations of spikes changes from
all the odd-integer multiples of 10 Hz to all the odd-integer multiples of 20 Hz. In
particular, we see the spikes at 20, 60, 100, 140, 180, 220, 260, 300, 340,
380, 420, 460. Note that plotspect (by the way that it is coded) only plots from [-
fs/2,fs/2). So, we see a spike at -500 but not 500. Of course, the Fourier transform of the
sampled waveform is periodic and hence when we replicate the spectrum every f s, we
will have a spike at 500. Note that, in theory, we should also see spikes at 540, 580,
620, 660, and so on. However, because the sampling rate is 1000 [Sa/s], these high
frequency spikes will suffer from aliasing and “fold back”1 into our viewing window [-
fs/2,fs/2). However, they fall back to the frequencies that already have spikes (for
example, 540 will fold back to 460, and 580 will fold back to 420) and therefore the
aliasing effect is not easily noticeable in the frequency domain.
sign(cos(2: f t )) where f = 20 using sampling int erval TS = 0.001 sign(cos(2: f t )) where f = 40 using sampling int erval TS = 0.001
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0 0.05 0.1 0.15 0.2 0.25
Seconds Seconds
1.5 1.5
Magnitude
Magnitude
1 1
0.5 0.5
0 0
-500 -400 -300 -200 -100 0 100 200 300 400 500 -500 -400 -300 -200 -100 0 100 200 300 400 500
Frequency [Hz] Frequency [Hz]
(d.ii) When f0 = 40 Hz, we start to see the aliasing effect in the frequency domain. Instead of
seeing spikes only at 40, 120, 200, 280, 360, 440, the spikes at higher
frequencies (such as 520, 600, and so on) fold back to lower frequencies (such as
480, 400, and so on). The plot in the time domain still looks quite OK with small
visible distortion.
(d.iii) At high fundamental frequency f0 = 100 Hz, we see stronger effect of aliasing. In the
time domain, the waveform does not look quite “rectangular”.
sign(cos(2: f t )) where f = 100 using sampling int erval TS = 0.001 sign(cos(2: f t )) where f = 100 using sampling int erval TS = 0.0001
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Seconds Seconds
1.5 1.5
Magnitude
Magnitude
1 1
0.5 0.5
0 0
-500 -400 -300 -200 -100 0 100 200 300 400 500 -5000 -4000 -3000 -2000 -1000 0 1000 2000 3000 4000 5000
Frequency [Hz] Frequency [Hz]
In the frequency domain, we only see the spikes at 100, 300, and 500. These are at
the correct locations. However, there are too few of them to reconstruct a square
waveform. The rest of the spikes are beyond our viewing window. We can’t see them
1
Because the squarewave is real and even, the Fourier transform is also real and even. Therefore, the “folding
effect” is “equivalent” to the “tunneling effect”.
directly because they fold back to the frequencies that are already occupied by the
lower frequencies. Note also that the predicted height (pink circles) at 300 Hz is quite
different from the plotspect value. This is because the content from the folded-back
higher-frequencies is being combined into the spikes.
Our problem can be mitigated by reducing the sampling interval to TS = 1/1e4 instead of
TS = 1/1e3 as shown by the plot on the right above.
(d.iv) Finally, at the highest frequency f0 = 300 Hz, if we still use T = 1/1e3, the waveform
will be heavily distorted in the time domain. This is shown in the left plot below. We
have large spikes at 300 as expected. However, the next pair which should occur at
900 is out of the viewing window and therefore folds back to 100.
sign(cos(2: f t )) where f = 300 using sampling int erval TS = 0.001 sign(cos(2: f t )) where f = 300 using sampling int erval TS = 0.0001
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
0 0.005 0.01 0.015 0.02 0.025 0.03 0 0.005 0.01 0.015 0.02 0.025 0.03
Seconds Seconds
1.5 1.5
Magnitude
Magnitude
1 1
0.5 0.5
0 0
-500 -400 -300 -200 -100 0 100 200 300 400 500 -5000 -4000 -3000 -2000 -1000 0 1000 2000 3000 4000 5000
Frequency [Hz] Frequency [Hz]
Again, the aliasing effect can be mitigated by reducing the sampling time to T = 1/1e4
instead of T = 1/1e3. Now, more spikes show up at their expected places. Note that we
can still see a lot of small spikes scattered across the frequency domain. These are again
the spikes from higher frequency which fold back to our viewing window.
Q5 Sinc Reconstruction of Sinc: MATLAB Simulation
Wednesday, November 16, 2016 8:34 PM