[go: up one dir, main page]

0% found this document useful (0 votes)
67 views1 page

Fast Fourier Transform MATLAB Code

The document contains MATLAB code that demonstrates the process of applying the Fast Fourier Transform (FFT) and its inverse (IFFT) on a simple sequence of ones. It generates three subplots: the original sequence, its FFT, and the IFFT of the FFT result. Each subplot is labeled with titles and axes for clarity.

Uploaded by

Koushik Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views1 page

Fast Fourier Transform MATLAB Code

The document contains MATLAB code that demonstrates the process of applying the Fast Fourier Transform (FFT) and its inverse (IFFT) on a simple sequence of ones. It generates three subplots: the original sequence, its FFT, and the IFFT of the FFT result. Each subplot is labeled with titles and axes for clarity.

Uploaded by

Koushik Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CODE:

clc;
clear all;
close all;
x = [1, 1, 1, 1];
subplot(311);
stem(x, 'filled');
title('Original Sequence');
ylabel('Amplitude');
xlabel('Time');
grid on;
y = fft(x);
subplot(312);
stem(y, 'filled');
title('Fast fourier transform');
ylabel('Amplitude');
xlabel('Time');
grid on;
subplot(313);
y1 = ifft(y);
stem(y1, 'filled');
title('Inverse fast fourier transform');
ylabel('Amplitude');
xlabel('Time');
grid on;

PLOT:

You might also like