0% found this document useful (0 votes)
63 views4 pages

Digital Signal Processing Laboratory: Experiment No. 6

This experiment uses MATLAB to demonstrate sampling of discrete time signals. Students generate a continuous cosine signal and sample it at different rates. The MATLAB code generates the signal, samples it, and plots the original and sampled signals. Students observe how changing the sampling rate affects the sampled signal and fidelity of reproduction compared to the original. The objectives are for students to learn sampling in MATLAB and study the effects of parameter changes on the sampled signal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views4 pages

Digital Signal Processing Laboratory: Experiment No. 6

This experiment uses MATLAB to demonstrate sampling of discrete time signals. Students generate a continuous cosine signal and sample it at different rates. The MATLAB code generates the signal, samples it, and plots the original and sampled signals. Students observe how changing the sampling rate affects the sampled signal and fidelity of reproduction compared to the original. The objectives are for students to learn sampling in MATLAB and study the effects of parameter changes on the sampled signal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Digital Signal Processing Laboratory

Experiment No. 6
Sampling of Discrete Time Signals in MATLAB

Score

Exceeds Meets Needs


CRITERIA Unsatisfactory
Expectations Expectations Improvement
Completeness
20 15 10 5
Accuracy of
20 15 10 5
Results
Observation /
20 15 10 5
Conclusion
Spelling and
20 15 10 5
Grammar
Presentation and
20 15 10 5
Format

Submitted by
Disa, Mar Jose P.
10:30-1:30 / Fri / CL14

Submitted to
Engr. Giel G. Marar
Instructor

Date of Submission
March 13, 2020
Experiment No. 6
Sampling of Discrete Time Signals in MATLAB

I. OBJECTIVES
The objectives of this experiment, using the MATLAB software, are for the students:
a. To learn how to sample discrete time signals using MATLAB
b. To study the effect of changing different parameters of the signal in sampling

II. MATERIALS REQUIRED


Computer with MATLAB installed
III. DISCUSSION
Generating a continuous signal and sampling it at a given rate is demonstrated in
this laboratory activity. In simulations, we may require to generate a continuous time
signal and convert it to discrete domain by appropriate sampling.

For baseband signal, the sampling is straight forward. By Nyquist Sampling


Theorem, for faithful reproduction of a continuous signal in discrete domain, one has to
sample the signal at a rate (FN) higher than at least twice the maximum frequency (FM)
contained in the signal.

IV. Procedure: Type the following MATLAB CODE:

2
Draw the output below:

V. DISCUSSION: Make sure to explain the MATLAB codes per line.

‘CLF’ command in MATLAB is used to reset the graph in the given figure. “t”
determines the minimum, maximum and range of the graph. f or the frequency of the graph,
determines the number of cycle to complete the given interval, next is an operation that does a
formula to a cosine wave or signal named 'xa'. Subplot (m, n, p) divides the current figure into an
m-by-n grid and creates axes in the position specified by p. plot command is used to display the
values indicate by the variables given. the x and y axis of the graph and the title or name of the
graph. The last line operation was the axis of the graph.

VI.CONCLUSION

On MATLAB this different parameters of the signal in sampling can be analyze, express
through graph and get a good output of sampling. MATLAB is useful throughout the Discrete
time signals even in sampling. In simulations, we may require to generate a continuous time
signal and convert it to a discrete domain by appropriate sampling. Multiple applications in
learning how to sample discrete time signals using MATLAB. Generating continuous signal and
sampling it at a given rate is demonstrated in this experiment. Manipulating the study in effect of
changing different parameters of the signal in sampling, MATLAB is a good choice on studying
and learning on Sampling of Discrete Time Signals.

3
4

You might also like