summaryrefslogtreecommitdiff
path: root/758/CH6/EX6.11/Ex_6_11.sce
blob: 6af305e3f3d9adc899a1d71d938f87a636db1444 (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=dft(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): ');