summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.1/Exa_8_1.sce
blob: ab20fffa177fba7146f3572f397abcd992dba185 (plain)
1
2
3
4
5
6
//DFT from defining relation
//N-point DFT
x=[1 2 1 0];
XDFT=fft(x,-1);
disp(XDFT,'The DFT of x[n] is');
//DFT of periodic signal x with period N=4