Digital Signal Processing Lab

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 33

Digital Signal Processing Lab

Sri Sai Suhaas Sanisetty


EAC21071
Worksheet-1
Sampling of Analog Signals and Study of Aliasing

i)
ii)
iii)
Result: The Given Signal is Sampled for 3 different frequencies and
Aliasing has been observed for Under Sampling (fs=50Hz) case in
MATLAB.
Worksheet-2
Computation of DFT using Direct/Linear Transformation Method
a)
b)
Result: DFT(8,16,64 Point) of the given signals has been found using
command fft and their Magnitude and Phase Spectra has been plotted in
MATLAB.
Worksheet-3
1. Perform 8-pointcircular folding on a discrete time sequence
x[n] = [1 2 3 -2 6 4].

Result: Time Reversal operation has been done and zero


padding is made before the time reversal.
2. Perform circular time shift of ‘m’ samples on a discrete time
sequence x[n] = [ 1 -3 2 0 5 -7 2 -1],of length N for the following
cases
(i) m = 4 and N = 10 (ii) m = -3 and N = 12
1.

2.
Result: Right shift and Left shift operations has been done for
a circular sequence and output has been verified.
3. Find circular even and circular odd components of a
sequence
x(n)= [2 -4 2 6 -3 8 1 1 -1] and plot the same. Record the
inference.

Result: Even and Odd parts of a circular sequence has been


found and output has been verified.
Worksheet-4
1. (a) Verify time shift property of DFT using sequences x(n)= [ 1 -3
4 6 -2 2 5 -6] and x((n-m)N).Assume m=3and N=10.
(b) Verify time shift property of DFT using sinusoidal signal x(n)=
cos(πn/8), where n=0:31by introducing a phase shift of π/2.
2. Verify time reversal property of DFT using sequences x(n)= [1 3 -
2 4 2 -1 ]. Assume N=12.
3. (a) Verify frequency shift property of DFT using sequences
x(n)= [ 1 -3 4 6 -2 2 5 -6 ] and X((k-2)N).
(b) Verify frequency shift property of DFT using sinusoidal signal
x(t)= cos(2*pi*5*t) where sampling frequency is 40 Hz and k0=3.
Taken=0:7.
4. (a) Write a mat lab function with a function name circonv_reg.
no.to determine N-point circular convolution of the signals x(n) and
h(n)using DFT and IDFT computations and verify the same using
inbuilt function cconv. Use the function to find the circular
convolution of the signals x(n)= [5 -1 3 2 8 4 6 3] and h(n)= [2 3 5 1-
1].
(b)Write a mat lab function with a function name linearconv_reg.
no.to determine linear convolution of the signals x(n) and h(n) using
DFT and IDFT computations and verify the same using inbuilt
function conv. Use the function to find the circular convolution of the
signals x(n)= [3-1 22 8 76 3] and h(n)= [2 3 51-2].
5. Verify Parseval’s theorem using sequence x(n) = [1 5 3 7 -12
15 8 2 ].
6. Verify that N-point DFT of a real and odd sequence is ‘imaginary
and odd’ using suitable example. Assume N=12.

You might also like