summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.19/Exa_8_19.sce
blob: 77fcc0e9ee7129015331c71bc379de664be93348 (plain)
1
2
3
4
5
6
7
8
9
10
//using DFT to find IDFT
XDFT=[4;-2*%i;0;2*%i];
XDFTc=[4;2*%i;0;-2*%i];
w=exp(-%i*%pi/2);
for i=1:4
    for j=1:4
        WN(i,j)=w^((i-1)*(j-1));
    end
end
xn=1/4*(WN*XDFTc)