summaryrefslogtreecommitdiff
path: root/52/CH4/EX4.23/Example4_23.sce
blob: b8a307f1bf061a59cb4c141ead2f8e69afaca3f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 4.23
//Program to Compute the DFT of given Sequence 
//x[n]=cos(n*pi/2), and N=4 using DIF-FFT Algorithm.
clear;
clc ;
close ;
N=4;
pi=22/7;
n=0:1:N-1;
x =cos(n*pi/2);
//FFT Computation
X = fft (x , -1);
disp(X,'X(z) = ');