summaryrefslogtreecommitdiff
path: root/758/CH6/EX6.11/Ex_6_11.sce
blob: 0926c2e069afceb3fdd3ad498c1ba22c718cd98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 6.11

clc;clear;close;
N=8;A=1/4;
n=0:N-1;
x=A^n;
//Calculation of DFT
X=fft(x,-1);
X=clean(X);
disp(x,'Given Sequence is x(n): ');
disp(N,'N=')
disp(X,'N-point DFT of the Sequence is X(k): ');