Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: FFT and DFT in matlab
Date: Mon, 1 Jun 2009 22:08:01 +0000 (UTC)
Organization: Uofc
Lines: 44
Message-ID: <h01jg1$aps$1@fred.mathworks.com>
References: <32904364.31308.1240942509387.JavaMail.jakarta@nitrogen.mathforum.org> <24260d5b-01ed-4554-8e60-6b360f16849f@s1g2000prd.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243894081 11068 172.30.248.37 (1 Jun 2009 22:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Jun 2009 22:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1662491
Xref: news.mathworks.com comp.soft-sys.matlab:544077







x=time
f_hat= amplitude in time domain   
M=length(x);

freq=(-N/2):(N/2-1);

 f=zeros(M,1);
      for k=1:N
        f=f+f_hat(k).*exp(-2*pi*i*x*freq(k));
      end;

isnt this is a simple version  of DFT ....i am applying it non uniform samples .....can any one tell me how this code is different from matlab dft










ideMan <mulgor@gmail.com> wrote in message <24260d5b-01ed-4554-8e60-6b360f16849f@s1g2000prd.googlegroups.com>...
> On Apr 29, 6:14=A0am, akshay <gulatiaks...@gmail.com> wrote:
> > Hey,
> >
> > I have written a simple DFT code for my randomly sampled signal,
> > but my results are different from those of matlab dft..
> >
> > Any comments will be appreciated
> >
> > Thanks
> 
> Thousands and thousands of people around the world are using Matlab's
> FFT routine every day, myself included.  What makes you think that you
> have somehow found a problem with it that no one else has discovered?
> 
> You asked for comments. Well, here is my carefully considered comment:
> you have a bug in your DFT code.