Lab 9 Exercise - Sampling Theorem - 2024
Lab 9 Exercise - Sampling Theorem - 2024
Lab Activity:
• To provide a better understanding Sampling, restoration, aliasing and
quantization.
• Sample and reconstruct signals using MATLAB
Software: Matlab
Introduction:
In this lab, we are going to focus on digital signals. However, to apply digital systems to real
world signals, we need to add the appropriate conversion steps before and after our digital
Processing. The following diagram gives an overview:
The analog signal x(t) is converted by an analog-to-digital (A/D) converter to the sequence
x[n], Which is processed by an LTI system with output sequence y[n]. The output sequence
y[n] is then Converted by an digital-to-analog (D/A) converter to an analog signal y(t).
Sampling:
The first step can be viewed as multiplying an analog signal x(t) by an analog impulse train s(t),
resulting in a sampled analog signal xs (t ) , as illustrated by the figure below:
Reconstruction (Restoration)
Simply, reversing all the steps done in
sampling
Bandlimited Waveforms
Definition: A waveform w(t) is (Absolutely Bandlimited) to B hertz if
A physical waveform that is time limited may not be absolutely bandlimited, but it may be
bandlimited for all practical purposes in the sense that the amplitude spectrum has a negligible level
above a certain frequency.
Aliasing:
This happens when the sampling frequency is too small.
Lab Task:
Different sampling rates and aliasing
1. Write the Matlab code to generate:
𝑥𝑥(𝑡𝑡) = cos(2𝜋𝜋𝜋𝜋𝜋𝜋) Where f=30 Hz
4. Multiple plot: the signal sampled under sampling condition and the signal x
a. in time domain
b. in frequency domain
c. Label and Title the plots appropriately.