summaryrefslogtreecommitdiff
path: root/758/CH6/EX6.8/Ex_6_8.sce
blob: 4c03f08614ccbbff3369de030707be9240b9a0db (plain)
1
2
3
4
5
6
7
8
9
10
//Example 6.8

clc;clear;close;
L=3;A=1/4;
x=A*ones(1,L);
//Calculation of DFT
X=dft(x,-1);
X=clean(X);
disp(x,'Given Sequence is x(n): ');
disp(X,'DFT of the Sequence is X(k): ');