summaryrefslogtreecommitdiff
path: root/830/CH6/EX6.8/FFT_Exercise1.sce
blob: 54ed73fe4a59a4d60dc2a737d144017dad25465e (plain)
1
2
3
4
5
6
7
8
9
10
11
//Graphical//
//Exercise 6.8
//Program to Calculate DFT using DIF-FFT algorithm
//x[n]= 1, 0<=n<=7
clear;
clc;
close;
x = [1,1,1,1,1,1,1,1];
X = fft(x,-1)
//Inverse FFT
x_inv = real(fft(X,1))