Saturday, March 24, 2012

Decimation in frequency FFT using Matlab

x=input('enter the sequence')
N=length(x)  
 s=log2(N)
 for m=s-1:-1:0
     for p=0:1:((2^m)-1)
        for k=p:(2^(m+1)):N-1
             b=x(k+1)
             t=(exp(-pi*1i*p/(2^m)))
             x(k+1)=b+x(k+(2^m)+1)
             x(k+(2^m)+1)=(b-x(k+(2^m)+1))*t
         end
     end 
 end
y=bitrevorder(x)

2 comments:

  1. thanks for the posting of such nice stuff .. thanks your effort is appreciable . . .you might also like to view my code for decimation in time fft matlab Radix 2

    ReplyDelete
  2. How to change the program to get DIT..??

    ReplyDelete

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...