<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120</link>
    <title>MATLAB Central Newsreader - FFT and DFT in matlab</title>
    <description>Feed for thread: FFT and DFT in matlab</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 28 Apr 2009 18:14:24 -0400</pubDate>
      <title>FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#645958</link>
      <author>akshay</author>
      <description>Hey,&lt;br&gt;
&lt;br&gt;
I have written a simple DFT code for my randomly sampled signal,&lt;br&gt;
but my results are different from those of matlab dft..&lt;br&gt;
&lt;br&gt;
Any comments will be appreciated&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Tue, 28 Apr 2009 18:25:17 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#645960</link>
      <author>Matt </author>
      <description>akshay &amp;lt;gulatiakshay@gmail.com&amp;gt; wrote in message &amp;lt;32904364.31308.1240942509387.JavaMail.jakarta@nitrogen.mathforum.org&amp;gt;...&lt;br&gt;
&amp;gt; Hey,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have written a simple DFT code for my randomly sampled signal,&lt;br&gt;
&amp;gt; but my results are different from those of matlab dft..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any comments will be appreciated&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Comments on what exactly? On your DFT code, which you haven't posted, or on the differences from MATLAB, which you haven't described. </description>
    </item>
    <item>
      <pubDate>Tue, 28 Apr 2009 20:45:16 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#645997</link>
      <author>TideMan</author>
      <description>On Apr 29, 6:14=A0am, akshay &amp;lt;gulatiaks...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hey,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have written a simple DFT code for my randomly sampled signal,&lt;br&gt;
&amp;gt; but my results are different from those of matlab dft..&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Any comments will be appreciated&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
Thousands and thousands of people around the world are using Matlab's&lt;br&gt;
FFT routine every day, myself included.  What makes you think that you&lt;br&gt;
have somehow found a problem with it that no one else has discovered?&lt;br&gt;
&lt;br&gt;
You asked for comments. Well, here is my carefully considered comment:&lt;br&gt;
you have a bug in your DFT code.</description>
    </item>
    <item>
      <pubDate>Mon, 01 Jun 2009 22:08:01 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#653934</link>
      <author>akshay</author>
      <description>&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
x=time&lt;br&gt;
f_hat= amplitude in time domain   &lt;br&gt;
M=length(x);&lt;br&gt;
&lt;br&gt;
freq=(-N/2):(N/2-1);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;f=zeros(M,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for k=1:N&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f=f+f_hat(k).*exp(-2*pi*i*x*freq(k));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end;&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
ideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;24260d5b-01ed-4554-8e60-6b360f16849f@s1g2000prd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Apr 29, 6:14=A0am, akshay &amp;lt;gulatiaks...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hey,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I have written a simple DFT code for my randomly sampled signal,&lt;br&gt;
&amp;gt; &amp;gt; but my results are different from those of matlab dft..&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Any comments will be appreciated&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thousands and thousands of people around the world are using Matlab's&lt;br&gt;
&amp;gt; FFT routine every day, myself included.  What makes you think that you&lt;br&gt;
&amp;gt; have somehow found a problem with it that no one else has discovered?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You asked for comments. Well, here is my carefully considered comment:&lt;br&gt;
&amp;gt; you have a bug in your DFT code.</description>
    </item>
    <item>
      <pubDate>Wed, 05 Aug 2009 15:16:03 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#670838</link>
      <author>Haroun Youssef</author>
      <description>Hello&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
akshay &amp;lt;gulatiakshay@gmail.com&amp;gt; wrote in message &amp;lt;32904364.31308.1240942509387.JavaMail.jakarta@nitrogen.mathforum.org&amp;gt;...&lt;br&gt;
&amp;gt; Hey,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have written a simple DFT code for my randomly sampled signal,&lt;br&gt;
&amp;gt; but my results are different from those of matlab dft..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any comments will be appreciated&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks</description>
    </item>
    <item>
      <pubDate>Wed, 05 Aug 2009 22:39:54 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#670979</link>
      <author>Steven G. Johnson</author>
      <description>On Aug 5, 11:16&#160;am, &quot;Haroun Youssef&quot; &amp;lt;aga...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Matlab is using FFT not DFT, so it is considering that the samples are unifrom.&lt;br&gt;
&lt;br&gt;
An FFT is an algorithm for computing the DFT (the name of the abstract&lt;br&gt;
mathematical transformation, not a specific method to compute this&lt;br&gt;
transformation).&lt;br&gt;
&lt;br&gt;
It would be more accurate to say that a transform with non-equispaced&lt;br&gt;
data is not a DFT.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Steven G. Johnson</description>
    </item>
    <item>
      <pubDate>Tue, 11 Aug 2009 18:10:19 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#672278</link>
      <author>Greg</author>
      <description>On Aug 5, 6:39 pm, &quot;Steven G. Johnson&quot; &amp;lt;stev...@alum.mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Aug 5, 11:16 am, &quot;Haroun Youssef&quot; &amp;lt;aga...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Matlab is usingFFTnot DFT, so it is considering that the samples are unifrom.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; AnFFTis an algorithm for computing the DFT (the name of the abstract&lt;br&gt;
&amp;gt; mathematical transformation, not a specific method to compute this&lt;br&gt;
&amp;gt; transformation).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It would be more accurate to say that a transform with non-equispaced&lt;br&gt;
&amp;gt; data is not a DFT.&lt;br&gt;
&lt;br&gt;
Given the amount of literature on NDFTs (NUDFTs, etc) this&lt;br&gt;
appears to be a personal view point.&lt;br&gt;
&lt;br&gt;
Speaking of viewpoints, I think there are basically 2:&lt;br&gt;
&lt;br&gt;
1. Approximations for the analysis of continuous signals&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;and systems.&lt;br&gt;
2. Analysis of discrete signals and systems.&lt;br&gt;
&lt;br&gt;
Taking the former viewpoint, a DFT should be just what the&lt;br&gt;
initials imply: A specific sum-based approximation to the&lt;br&gt;
continuous CFT integral for functions sampled over a finite&lt;br&gt;
interval T = t2-t1. There should be no constraint that&lt;br&gt;
samples are uniformly spaced.&lt;br&gt;
&lt;br&gt;
The primary constraint should be that the discrete time&lt;br&gt;
transform converge to the continuous time transfornm as&lt;br&gt;
N --&amp;gt; inf but sum(dti,i = 1:N) = T.&lt;br&gt;
&lt;br&gt;
A secondary constraint should be that the DFT reduce to&lt;br&gt;
the well known formula when t1 = 0, dti = dt = T/N =&lt;br&gt;
constant and tN = (N-1)*dt = T-dt.&lt;br&gt;
&lt;br&gt;
However, the best rectangular approximation to the integral&lt;br&gt;
approximates the area from t1 to t2 with endpoint rectangles&lt;br&gt;
of width dt/2. Whereas the traditional uniformly spaced DFT&lt;br&gt;
best approximates the area from t1-dt/2 to tN+dt/2 with the&lt;br&gt;
time sample centered at the middle of a rectangle.&lt;br&gt;
&lt;br&gt;
So ... when applying a NDFT formula to uniformly spaced&lt;br&gt;
points take the endpoint factors of 2 into account when&lt;br&gt;
comparing with the traditional result.&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg</description>
    </item>
    <item>
      <pubDate>Wed, 12 Aug 2009 05:25:23 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#672402</link>
      <author>dbd</author>
      <description>On Aug 11, 11:10 am, Greg &amp;lt;he...@alumni.brown.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Aug 5, 6:39 pm, &quot;Steven G. Johnson&quot; &amp;lt;stev...@alum.mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; ...&lt;br&gt;
&amp;gt; &amp;gt; It would be more accurate to say that a transform with non-equispaced&lt;br&gt;
&amp;gt; &amp;gt; data is not a DFT.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Given the amount of literature on NDFTs (NUDFTs, etc) this&lt;br&gt;
&amp;gt; appears to be a personal view point.&lt;br&gt;
&lt;br&gt;
The authors of such literature take pains to differentiate their works&lt;br&gt;
for works labelled simply 'DFT' or 'FFT' by adding leading qualifiers&lt;br&gt;
to their use. The nearly universal usage of 'DFT' alone to only apply&lt;br&gt;
to uniformly spaced data when used as a transform between time and&lt;br&gt;
frequency domain data samples makes it fair to assume that the use of&lt;br&gt;
'DFT' alone for non-uniformly sampled data is either ignorant or mean-&lt;br&gt;
spirited.&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Speaking of viewpoints, I think there are basically 2:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1. Approximations for the analysis of continuous signals&lt;br&gt;
&amp;gt;    and systems.&lt;br&gt;
&amp;gt; 2. Analysis of discrete signals and systems.&lt;br&gt;
&lt;br&gt;
There are far more than two viewpoints on the applications of the DFT.&lt;br&gt;
Those whose experience is primarily limited to these two often can't&lt;br&gt;
even tell these two apart and end up trying to make 2 resemble 1 even&lt;br&gt;
when application drive no such requirement.&lt;br&gt;
&lt;br&gt;
The great growth in the number of available applications,&lt;br&gt;
implementations and instrumentation of the DFT to uniformly spaced&lt;br&gt;
time and frequency samples took place in the 1970s and 1980s. A good&lt;br&gt;
example of the interpretation of the DFT as it has been widely&lt;br&gt;
understood and implemented then and ever since can be found in:&lt;br&gt;
&lt;br&gt;
On the use of windows for harmonic analysis with the discrete Fourier&lt;br&gt;
transform&lt;br&gt;
Harris, F.J.&lt;br&gt;
Proceedings of the IEEE&lt;br&gt;
Publication Date: Jan. 1978&lt;br&gt;
Vol: 66,  Issue: 1,&lt;br&gt;
On page(s): 51- 83&lt;br&gt;
&lt;br&gt;
in particular for this topic, section II:&lt;br&gt;
Harmonic Analysis of Finite Extent Data and the DFT&lt;br&gt;
&lt;br&gt;
Available many places including:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://web.mit.edu/xiphmont/Public/windows.pdf&quot;&gt;http://web.mit.edu/xiphmont/Public/windows.pdf&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; So ... when applying a NDFT formula to uniformly spaced&lt;br&gt;
&amp;gt; points take the endpoint factors of 2 into account when&lt;br&gt;
&amp;gt; comparing with the traditional result.&lt;br&gt;
&lt;br&gt;
Can you provide references to this in the literature?&lt;br&gt;
&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Greg&lt;br&gt;
&lt;br&gt;
Dale B. Dalrymple</description>
    </item>
    <item>
      <pubDate>Thu, 13 Aug 2009 03:38:54 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#672693</link>
      <author>Greg</author>
      <description>On Aug 12, 1:25 am, dbd &amp;lt;d...@ieee.org&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Aug 11, 11:10 am, Greg &amp;lt;he...@alumni.brown.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Aug 5, 6:39 pm, &quot;Steven G. Johnson&quot; &amp;lt;stev...@alum.mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; It would be more accurate to say that a transform with non-equispaced&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; data is not a DFT.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Given the amount of literature on NDFTs (NUDFTs, etc) this&lt;br&gt;
&amp;gt; &amp;gt; appears to be a personal view point.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The authors of such literature take pains to differentiate their works&lt;br&gt;
&amp;gt; for works labelled simply 'DFT' or 'FFT' by adding leading qualifiers&lt;br&gt;
&amp;gt; to their use. The nearly universal usage of 'DFT' alone to only apply&lt;br&gt;
&amp;gt; to uniformly spaced data when used as a transform between time and&lt;br&gt;
&amp;gt; frequency domain data samples makes it fair to assume that the use of&lt;br&gt;
&amp;gt; 'DFT' alone for non-uniformly sampled data is either ignorant or mean-&lt;br&gt;
&amp;gt; spirited.&lt;br&gt;
&lt;br&gt;
Point taken.&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; Speaking of viewpoints, I think there are basically 2:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 1. Approximations for the analysis of continuous signals&lt;br&gt;
&amp;gt; &amp;gt;    and systems.&lt;br&gt;
&amp;gt; &amp;gt; 2. Analysis of discrete signals and systems.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; There are far more than two viewpoints on the applications of the DFT.&lt;br&gt;
&lt;br&gt;
Agreed. However, most arguments seem to stem from one of those two.&lt;br&gt;
&lt;br&gt;
&amp;gt; Those whose experience is primarily limited to these two often can't&lt;br&gt;
&amp;gt; even tell these two apart and end up trying to make 2 resemble 1 even&lt;br&gt;
&amp;gt; when application drive no such requirement.&lt;br&gt;
&lt;br&gt;
This thread is a case in point.&lt;br&gt;
&lt;br&gt;
-----SNIP&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; So ... when applying a NDFT formula to uniformly spaced&lt;br&gt;
&amp;gt; &amp;gt; points take the endpoint factors of 2 into account when&lt;br&gt;
&amp;gt; &amp;gt; comparing with the traditional result.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can you provide references to this in the literature?&lt;br&gt;
&lt;br&gt;
This comment was w.r.t. akshay's request&lt;br&gt;
&lt;br&gt;
&quot;I have written a simple DFT code for my randomly sampled&lt;br&gt;
signal, but my results are different from those of matlab dft.&lt;br&gt;
&lt;br&gt;
Any comments will be appreciated&quot;&lt;br&gt;
&lt;br&gt;
The viewpoint of my comment is from that of an approximation&lt;br&gt;
to the CFT integral.&lt;br&gt;
&lt;br&gt;
However, since I don't know exactly what he did, I can only&lt;br&gt;
conjecture:&lt;br&gt;
&lt;br&gt;
Let&lt;br&gt;
&lt;br&gt;
fi  = f(t(i))&lt;br&gt;
dti = t(i+1)-t(i)&lt;br&gt;
tmi = (t(i+1)+t(i))/2&lt;br&gt;
fmi = f(tmi)&lt;br&gt;
&lt;br&gt;
Then the three simplest sum of rectangles aproximations to the&lt;br&gt;
integral are&lt;br&gt;
&lt;br&gt;
I1 = SUM(i=1:N-1){ fi   * dti },&lt;br&gt;
I2 = SUM(i=1:N-1){ fi+1 * dti },&lt;br&gt;
I3 = SUM(i=1:N-1){ fmi  * dti }.&lt;br&gt;
&lt;br&gt;
When applied directly to the DFT with dti = dt = constant, none&lt;br&gt;
of the above reduce to the familiar N term result.&lt;br&gt;
&lt;br&gt;
Two obvious modifications are&lt;br&gt;
&lt;br&gt;
1. I4 = (I1+I2)/2&lt;br&gt;
2. I5 = I3 with fmi = (fi+1+fi)/2&lt;br&gt;
&lt;br&gt;
Both lead to the well known trapezoidal approximation&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Numerical_integration&quot;&gt;http://en.wikipedia.org/wiki/Numerical_integration&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
which downweights the endpoints by a factor of two.&lt;br&gt;
&lt;br&gt;
Therefore, my comment to ashkay is&lt;br&gt;
&lt;br&gt;
&quot;Check to see if this is why your result doesn't match with&lt;br&gt;
the fft result.&quot;&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg</description>
    </item>
    <item>
      <pubDate>Thu, 13 Aug 2009 18:47:32 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#672985</link>
      <author>dbd</author>
      <description>On Aug 12, 8:38 pm, Greg &amp;lt;he...@alumni.brown.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Numerical_integration&quot;&gt;http://en.wikipedia.org/wiki/Numerical_integration&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which downweights the endpoints by a factor of two.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt; Greg&lt;br&gt;
&lt;br&gt;
Thank you for providing the reference. I think that a comparison of&lt;br&gt;
the references in this thread show that &quot;numerical integration&quot; and&lt;br&gt;
&quot;harmonic analysis&quot; are significantly different viewpoints on:&lt;br&gt;
&lt;br&gt;
&amp;gt; 2. Analysis of discrete signals and systems.&lt;br&gt;
&lt;br&gt;
One of the obvious differences is that  &quot;harmonic analysis&quot; deals with&lt;br&gt;
an extent of N sample intervals on the basis of N samples while&lt;br&gt;
&quot;numerical integration&quot; deals with an extent of N-1 sample intervals&lt;br&gt;
on the basis of N samples. This is what seems to require the different&lt;br&gt;
weighting of the end samples.&lt;br&gt;
&lt;br&gt;
I have not found any published uniform or nonuniform DFT algorithm&lt;br&gt;
that takes the &quot;numerical integration&quot; viewpoint. Have you? The wiki/&lt;br&gt;
Numerical_Integration article makes no pretense of representing a DFT.&lt;br&gt;
This makes your suggestion to the OP about failure to properly&lt;br&gt;
numerically integrate seem an unlikely source of error between the&lt;br&gt;
OP's implementation and any other DFT or non-uniform DFT algorithm&lt;br&gt;
implementation.&lt;br&gt;
&lt;br&gt;
Dale B. Dalrymple</description>
    </item>
    <item>
      <pubDate>Fri, 14 Aug 2009 03:19:56 -0400</pubDate>
      <title>Re: FFT and DFT in matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250120#673112</link>
      <author>Steven G. Johnson</author>
      <description>On Aug 12, 11:38&#160;pm, Greg &amp;lt;he...@alumni.brown.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; Both lead to the well known trapezoidal approximation&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Numerical_integration&quot;&gt;http://en.wikipedia.org/wiki/Numerical_integration&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which downweights the endpoints by a factor of two.&lt;br&gt;
&lt;br&gt;
No, this is not correct.  If you are viewing the DFT as a sampled&lt;br&gt;
approximation for Fourier series coefficients, the endpoints are 0 and&lt;br&gt;
N, not 0 and N-1.  If you weight each of these by 1/2 as per the&lt;br&gt;
trapezoidal rule, due to aliasing you get back exactly the DFT&lt;br&gt;
formula.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Steven G. Johnson</description>
    </item>
  </channel>
</rss>

