Professional Documents
Culture Documents
T. Y. B. Tech (Electrical) Sem VI Digital Signal Processing: Lab Experiment
T. Y. B. Tech (Electrical) Sem VI Digital Signal Processing: Lab Experiment
Group Members :
Aim : To find Discrete Fourier Transform (DFT) and Inverse Discrete Fourier Transform
(IDFT) of the given discrete signal.
Theory : The Discrete Fourier Transform (DFT) computes the values of the z-transform for evenly
spaced points around the unit circle for a given sequence. If the sequence to be
represented is of finite duration, i.e. has only a finite number of non-zero values, the
transform used is Discrete Fourier Transform (DFT).
Let x(n) be a finite duration sequence. The N-point Discrete Fourier Transform (DFT) of
the sequence x(n) is expressed by
𝑗2𝜋𝑛𝑘
−
𝑋(𝑘) = ∑𝑁−1
𝑛=0 𝑥(𝑛)𝑒 𝑁 , 𝑘 = 0,1, … , 𝑁 − 1
and the corresponding Inverse Discrete Fourier Transform (IDFT) is
𝑗2𝜋𝑛𝑘
1
𝑥(𝑛) = ∑𝑁−1
𝑘=0 𝑋(𝑘) 𝑒 𝑁 , 𝑛 = 0,1, … , 𝑁 − 1
𝑁
Program :
%Aim - find the dft and idft of input signal
%author - Satyam,Sandesh,Aaditya,Narendra
%date - 19/01/21
magnitude=abs(xk);
%Plotting magnitude response
t=0:ln-1;
subplot(2,2,2);
stem(t,magnitude);
xlabel('Number of Samples')
ylabel('Amplitude')
title('Magnitude Response');
phase=angle(xk);
%Plotting phase response
t=0:ln-1;
subplot(2,2,3);
stem(t,phase);
xlabel('Number of Samples')
ylabel('Phase')
title('Phase Response');
[4,2,-1,2]
DFT and IDFT of the given discrete time system
Conclusion : The Discrete Fourier Transform (DFT) and Inverse Discrete Fourier Transform (IDFT)
are obtained by executing the code in MATLAB and manually. Both the results are
verified and the results are also found to be same. The magnitude and phase of the DFT
of the signal are also plotted. DFT and IDFT find its applications in digital signal
processing including linear filtering, correlation analysis and spectrum analysis.
Manual Calculations: