Path: news.mathworks.com!not-for-mail
From: "Haroun Youssef" <agad11@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: FFT and DFT in matlab
Date: Wed, 5 Aug 2009 15:16:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <h5c7nj$6ba$1@fred.mathworks.com>
References: <32904364.31308.1240942509387.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "Haroun Youssef" <agad11@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249485363 6506 172.30.248.38 (5 Aug 2009 15:16:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 5 Aug 2009 15:16:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1926289
Xref: news.mathworks.com comp.soft-sys.matlab:561026


Hello

Matlab is using FFT not DFT, so it is considering that the samples are unifrom. If you input samples that are not uniform, the answer will probably different from the Matlab m file. Your code will give the right answer as it is not right to use FFT for non uniform samples. If you still need to use FFT, you have to consider to program another code for non uniform FFT

akshay <gulatiakshay@gmail.com> wrote in message <32904364.31308.1240942509387.JavaMail.jakarta@nitrogen.mathforum.org>...
> 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