summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.5c/Exa_8_5c.sce
blob: b7214bd0375b37db3dba53a76f2e4fa4b41d2a70 (plain)
1
2
3
4
5
6
7
//Regular convolution
xn=[1 2 1 0];
yn=[1 2 1 0 0 0 0];
YDFT=fft(yn,-1)
SDFT=YDFT.*YDFT
sn=fft(SDFT,1)
sn1=convol(xn,xn)