Saturday 4 January 2014

5. Fast Fourier Transform


5Fast Fourier Transform
AIM:
To verify Fast Fourier Transform.
EQUIPMENTS:
Operating System – Windows XP
Constructor Simulator
Software - CCStudio 3 & MATLAB 7.5
PROGRAM:
%fast fourier transform
clc;
clear all;
close all;
tic;
x=input('enter the sequence');
n=input('enter the length of fft');
%compute fft
disp('fourier transformed signal');
X=fft(x,n)
subplot(1,2,1);stem(x);
title('i/p signal');
xlabel('n --->');
ylabel('x(n) -->');grid;
subplot(1,2,2);stem(X);
title('fft of i/p x(n) is:');
xlabel('Real axis --->');
ylabel('Imaginary axis -->');grid;

0 comments:

Post a Comment