how to compute and plot FFT

edited November 2009 in Science & Tech
Hi all
I tried to compute and plot frequency function bellow, but I can't it work. please help

N-1
X[k] = sum(x[n]*exp(2*pi*j*n*k/N))
n=0

Pi=3.14;
fd=10^3;
N=35;
for k=1:N
for n=1:N
X(k)=exp(j*pi*n*(fd-(k/N)));
end
end

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited November 2009
    What function are you trying to take the DFT of?

    Also, there's an FFT() function in matlab.
  • edited November 2009
    shwaip wrote:
    What function are you trying to take the DFT of?

    Also, there's an FFT() function in matlab.

    Hi there
    fft filter out
    thank you
    i just want to compute frequency response fft filter output
    thank you
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited November 2009
    I don't understand what you're trying to take the dft of.

    could you perhaps post all the code?

    place it inside [php]
    
    [/php]

    tags please.
Sign In or Register to comment.