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