DSAP_lab_1
DSAP_lab_1
Changunarayan‐04, Bhaktapur
Digital Signal Analysis and Processing (DSAP) Lab
CRN: Name: Semester: Spring 2022
Objective:
In this lab session, we will familiarize ourselves with basic discrete-time signals using MATLAB. We
will write MATLAB programs to plot continuous-time sinusoidal signals of different frequencies and
study the different properties of discrete-time sinusoidal signal. We will also write programs to plot
various graphs that will illustrate Fourier series theory.
𝑥𝑛 𝐴𝑐𝑜𝑠 2𝜋𝑓𝑛 𝜃
b. Write a program that plots the signal x(t) in step (a) but with N = 99 and N = 999.
c. What do you conclude from steps (a) & (b)?
5. Other Signals:
A normally distributed random signal of length N can be generated using the MATLAB command
randn(1,N):
a. Write a program to generate a normally distributed random signal of length 100 samples.
b. Write a program to generate noise sinusoidal signal.
Submission Requirement
Note:
Submission deadline is the date of next lab. Each student is required to submit a hardcopy report of the
lab by the submission deadline. Failure to do so will not be accepted. Each report must be your own
work. Copied or photo copied report will not be accepted.