


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!



%VERIFICATION OF SAMPLING THEOREM % t=0:.0001:1; Generate 8 Hz sinusoidal signal. fm=8; x=sin(2pifmt); subplot(4,2,1) plot(t,x); title('Continuous Sine Wave'); xlabel('t-->'); ylabel('x(t)-->'); %Analog signal sampled at fs>2fm fs=80; n=0:1/fs:1; xn=sin(2pifmn); subplot(4,2,2); stem(n,xn); title('Sampling At fs>2fm'); xlabel('n-->'); ylabel('x(n)-->'); %Its Continuous Waveform: fs=60; n=0:1/fs:1; xn=sin(2pifm*n); subplot(4,2,3); plot(n,xn); title('Continuous Waveform Of Sampled Signal At fs>2fm'); xlabel('n-->');
%Analog signal sampled at fs<2fm fs=2; n=0:1/fs:10; xn=sin(2pifmn); subplot(4,2,4); stem(n,xn); title('Sampling At fs<2fm'); xlabel('n-->'); ylabel('x(n)-->'); %Its Continuous Waveform: fs=5; n=0:1/fs:10; xn=sin(2pifmn); subplot(4,2,5); plot(n,xn); title('Continuous Waveform Of Sampled Signal At fs<2fm'); xlabel('n-->'); ylabel('x(n)-->'); %Analog signal sampled at fs=2fm fs=16; n=0:1/fs:1; xn=sin(2pifm*n); subplot(4,2,6); stem(n,xn); title('Sampling At fs=2fm'); xlabel('n-->');
RESULT:- We successfully verify Sampling Theorem.