summaryrefslogtreecommitdiff
path: root/52/CH4/EX4.20/Example4_20.sce
blob: aa279014e4acddfbf63d03894b3ca0d9077c106f (plain)
1
2
3
4
5
6
7
8
9
10
//Example 4.20
//Program to Compute the 8-point DFT of given Sequence 
//x[n]=[2,2,2,2,1,1,1,1] using DIT, radix-2,FFT Algorithm.
clear;
clc ;
close ;
x = [2,2,2,2,1,1,1,1];
//FFT Computation
X = fft (x , -1);
disp(X,'X(z) = ');