Professional Documents
Culture Documents
Experiment No. 2
Experiment No. 2
Experiment No. 2
2
AIM :- To study and verify sampling theorem.
OBJECTIVE :- The objective of this experiment is to verify sampling theorem and observe the
effect of different sampling frequency on reconstructed signal.
THEORY :-
Sampling Theorem:
Statement:
A continuous time signal can be represented in its samples and can be recovered back
when sampling frequency fs is greater than or equal to the twice the highest frequency
component of message signal.
Proof:
Consider a continuous time signal x(t). The spectrum of x(t) is a band
limited to fm Hz i.e. the spectrum of x(t) is zero for |f|>fm. Sampling of input signal x(t)
can be obtained by multiplying x(t) with an impulse train δ(t) of period Ts. The output
of multiplier is a discrete signal called sampled signal which is represented with y(t)
in the following diagrams:
M
a
t
h
e
m
a
t
ical expression:
So,
δ(t) =1/Ts+ (2/Tscos nωs t+0)
=1/Ts[x(t)+2 cos nωst x(t) +2 cos n2ωst x(t)+2 cos n3ωst x(t) …]
Take Fourier transform both side:
Y(ω)=1/Ts [X(ω)+X(ω-ωs)+X(ω+ωs)+X(ω-2ωs)+X(ω+2ωs)+…]
To
Aliasing Effect:
The overlapped region in case of under sampling represents aliasing effect.
f=input(‘enter frequency’);
fs=input(‘enter sample frequency’);
ts=1/fs;
t=0:ts:5;
x=sin(2*pi*f*t);
subplot(2,1,1);
plot(t,x);
y=sin(2*pi*f*t);
subplot(2,1,2);
stem(t,x);
axis([0 5 -1 1]);
title(‘sampled sinusoidal’);
OUTPUT: