MATLAB Program for Fast Fourier Transform(FFT) for the given Sequence | IT1254 - DSP and Communications Systems Lab



AIM:
        To write a program for Fast Fourier Transform for the given sequence by using MATLAB in IT1254 - DSP and Communications Systems Lab.

ALGORITHM:
Step 1: Start
Step 2: Read the length of sequence
Step 3: Perform fast fourier transform using the fft() function
Step 4: Plot the sequence
Step 5: Display the output
Step 6: Stop

SOURCE CODE:
clc;
clear all;
close all;
xn=input('Enter the input sequence: ');
subplot(3,1,1);
stem(xn);
xlabel('Real axis->');
ylabel('Imaginary axis->');
title('INPUT SEQUENCE');
xk=fft(xn);
disp('The resultant is');
disp(xk);
subplot(3,1,3);
plot(xk,'o');
xlabel('Real axis->');
ylabel('Imaginary axis->');
title('OUTPUT SEQUENCE');

OUTPUT:

Click to view full size image!

RESULT:
   Thus the program for Fast Fourier Transform was performed using MATLAB and the output sequences were drawn.
Previous
Next Post »

3 comments

Write comments

Still not found what you are looking for? Try again here.