x=rand(1,8);for k=1:8 for m=1:8 l(m)=x(m)*exp(-i*2*pi*k*m/8); end X(k)=sum(l);endX=X
I used this code to implement the fast Fourier transform but it didn't work. Is there any help?
fftMATLAB
x=rand(1,8);for k=1:8 for m=1:8 l(m)=x(m)*exp(-i*2*pi*k*m/8); end X(k)=sum(l);endX=X
Best Answer