Professional Documents
Culture Documents
Exp 1
Exp 1
EX.NO.1 COMPUTATION OF DFT USING BASIC EQUATION, FFT AND POWER SPECTRUM
ESTIMATION USING DFT
DATE:
AIM:
To write and execute the SCILAB programs for computation of DFT, FFT and power spectrum
estimation
APPARATUS REQUIRED:
SCILAB with PC
THEORY
Let X(ejw) be discrete time Fourier transform of the discrete time signal x(n). The discrete Fourier transform
(DFT) of x(n) is obtained by sampling one period of the discrete time Fourier transform X(e jw) at a finite
number of frequency points. Let, x(n) = Discrete time signal of length L and X(k) = DFT of x(n)
The plot of samples of magnitude sequence versus k is called magnitude spectrum and the plot of samples of
phase sequence versus k is called phase spectrum. In general, these plots are called frequency spectrum
PROGRAM:
X1=abs(X);
subplot(1,3,2);
plot2d3(k,X1);
xlabel('K-->');
ylabel('Magnitude of X(K)');
title('Magnitude Plot');
OUTPUT:
RESULT :