Question: Question 2 ( 2 4 marks ) LABORATORY 1 SAMPLING THEOREM 1 . 0 Objective To verify the Sampling Theorem 2 . 0 Theory Sampling

Question 2(24 marks)
LABORATORY 1 SAMPLING THEOREM
1.0 Objective
To verify the Sampling Theorem
2.0 Theory
Sampling is defined as measuring the value of an information signal at predetermined
time interval. The rate at which the signal is sampled is known as the sampling rate or
sampling frequency. The types of sampling are natural sampling and flat top sampling.
A continuous time signal can be processed by processing its samples through a
discrete time system. For reconstructing the continuous time signal from its discrete
time samples without any error, the signal should be sampled at a sufficient rate that
is determined by the sampling theorem.
Sampling theorem
If a signal is band limited and its samples are taken at sufficient rate than those
samples uniquely specify the signal and the signal can be reconstructed from those
samples. The condition in which this is possible is known as Nyquist sampling
theorem. A signal whose spectrum is band limited to for |f|>D can
be reconstructed from its samples taken uniformly at a rate fs>2D samples ?sec. The
minimum sampling frequency is fs=2DHz.
3.0 Equipment & Software
Computer Unit with Ms Windows or Linux operating system installed
Scilab version 6.1.0
4.0 Procedures
Launch Scilab.
Open SciNotes.
Type the program on editor window. Source Code:close;
clear;
fm=input('Enter the input signal frequency:');
k=inout('Enter the number of Cycles of input signal:');
A=inout('Enter the amplitude of input signal:');
tm=0:1/(fm*fm):k/fm;
x}=\mp@subsup{\textrm{A}}{}{%\mp@subsup{\mathrm{ pi}}{}{*}\textrm{fm
figure(1);
a = gca();
a.x_location = "origin";
a.y_location = "origin";
plot(tm,x);
title('ORIGINAL SIGNAL');
xlabel('Time');
ylabel('Amplitude');
Xgrid(1)
//Sampling Rate(Nyquist Rate)=2*fm
fnyq=2*fm;
. UNDER SAMPLING fs=(3/4)
a = gca();
a.x_location = "origin"; a.y_location = "origin"; plot2d3('gnn',n,xn); plot(n,xn,'r'); title('Under
Sampling'); xlabel('Time'); ylabel('Amplitude');
legend('Sampled Signal', 'Reconstructed Signal'); xgrid(1)
//NYQUIST SAMPLING fs=fnyq; n=0:1/fs k/fm; xn=A*}\operatorname{cos(2*%pin); figure(3);
a = gca();
a.x_location = "origin"; a.y_location = "origin"; plot2d3('gnn',n,xn); plot(n,xn,'r'); title('Nyquist
Sampling'); xlabel('Time'); ylabel('Amplitude');
leqend('Sampled Signal', 'Reconstructed Signal'); xgrid(1)
//OVER SAMPLING fs=fnyq}\operatorname{cos(2*%pin); figure(4);
a = gca();
a.x_location = "origin"; a.y_location = "origin"; plot2d3('gnn',n,xn); plot(n,xn,'r');title('Over
Sampling'); xlabel('Time'); ylabel('Amplitude');
legend('Sampled Signal', 'Reconstructed Signal'); xgrid(1)Sample inputs:
//Enter the input signal frequency:100
//Enter the number of Cycles of input signal:2
//Enter the amplitude of input signal:2
Save the program with filename .sce extension.
Execute the program and observe the output or waveforms.
 Question 2(24 marks) LABORATORY 1 SAMPLING THEOREM 1.0 Objective To verify

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!