summaryrefslogtreecommitdiff
path: root/67/CH8/EX8.7/example87.sce
blob: 3c9befd7244f57afa62ad3a9de04bbf4a52c4b51 (plain)
1
2
3
4
5
6
7
8
//Example 8.7
//DFT of x[n]=a.^n
clc;
a=0.5;//Say for a=0.5
n=0:4;
x=a.^n;
X=fft(x,-1);
disp(X,'X[k]=');