summaryrefslogtreecommitdiff
path: root/40/CH5/EX5.5/Exa_5_5.sce
blob: 0ad017d3712ac500b3be0ef3e74812680fb1bbc8 (plain)
1
2
3
4
5
6
7
x=[1 0 2 0 3];//one period of signal
n=0:4;
k=0:4;
x1=x*exp(%i*n'*2*k*%pi/4)
DTFTx=abs(x1)
DFT=dft(x,-1)
DFS=DFT/5