Sampling
Sampling
1. Draw |Xs(ω)| for the following cases if xs(t)=x(t)p(t) with sampling period T.
n =∞
p( t ) = ∑ δ(t − nT)
n =−∞
|X(ω)|
2
-2 -1 0 1 2 ω
a) T = π/4 sec
b) T = π/2 sec
c) T = 2π/3 sec
In order to examine the effects of aliasing in the time domain, plot x(t) for each of the sampling times for
t=0 to 15 sec. In MATLAB, this is done by defining your time vector with the time increment set to the
desired sampling period. MATLAB then "reconstructs" the signal by connecting the sampled points with
straight lines (this is known as a linear interpolation). Compare your sampled/reconstructed signals with
a signal that is more accurate, one that is created by using a very small sampling period (such as T = 0.05
sec) by plotting them on the same graph.
The output y(t) of the ideal reconstruction can be found by sending the sampled signal xs(t) = x(t)p(t)
through an ideal lowpass filter:
T
-0.5ωs 0.5ωs
Let x(t) = 2 + cos(50πt) and T = 0.01 sec.
The output y(t) of the ideal reconstruction can be found by sending the sampled signal xs(t) = x(t)p(t)
through an ideal lowpass filter:
T
-0.5ωs 0.5ωs
a) Let x(t) = 1 + cos(15πt) and T = 0.1 sec. Draw |Xs(ω)| where xs(t) = x(t)p(t). Determine the
expression for y(t).
b) Let X(ω) = 1/(jω+1) and T = 1 sec. Draw |Xs(ω)| where xs(t) = x(t)p(t). Does aliasing occur? (Justify
your answer.)