<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255051</link>
    <title>MATLAB Central Newsreader - FFT</title>
    <description>Feed for thread: FFT</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>Wed, 01 Jul 2009 06:02:02 -0400</pubDate>
      <title>FFT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255051#661713</link>
      <author>guj </author>
      <description>I was doing an experiment, and find that FFT and NDFT are giving little different results when i implement it on uniform sampled sin signal with 101 samples.&lt;br&gt;
&lt;br&gt;
Although results are same. Only difference is the some noise near the spike. Noise is zero in case of NDFT but little noise can be seen in FFT  Should i expect the same results from both of them&lt;br&gt;
&lt;br&gt;
Any comments will be appreciated. I have some images for what i have done, if some body interested in seeing. Drop me a  mail at pinkfloydindia@yahoo.com</description>
    </item>
    <item>
      <pubDate>Sat, 04 Jul 2009 19:10:26 -0400</pubDate>
      <title>Re: FFT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255051#662626</link>
      <author>Greg</author>
      <description>On Jul 1, 2:02&#160;am, &quot;guj &quot; &amp;lt;gulatiaks...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I was doing an experiment, and find thatFFTand NDFT are giving little different results when i implement it on uniform sampled sin signal with 101 samples.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Although results are same. Only difference is the some noise near the spike. Noise is zero in case of NDFT but little noise can be seen inFFT&#160;Should i expect the same results from both of them&lt;br&gt;
&lt;br&gt;
Since floating point calculations are used, you will have to&lt;br&gt;
quantify&lt;br&gt;
your statement. What is the normalized mean-squared error&lt;br&gt;
&lt;br&gt;
mean(abs(X2-X1).^2)/mean(abs(X1-mean(X1)))&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg&lt;br&gt;
&lt;br&gt;
&amp;gt; Any comments will be appreciated. I have some images for what i have done, if some body interested in seeing. Drop me a &#160;mail at pinkfloydin...@yahoo.com&lt;br&gt;
&lt;br&gt;
If your error is sisnificant and I have some time, I will look at it.</description>
    </item>
    <item>
      <pubDate>Mon, 06 Jul 2009 15:58:01 -0400</pubDate>
      <title>Re: FFT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255051#662959</link>
      <author>guj </author>
      <description>&lt;br&gt;
Can any one tell me difference between these notations&lt;br&gt;
&lt;br&gt;
Matlab DFT&lt;br&gt;
for K=1:N&lt;br&gt;
for n=1:N&lt;br&gt;
x(w)=sum( n=0 n=N-1) x(n) exp ( 2 pi (k-1) (n-1) /N)&lt;br&gt;
&lt;br&gt;
NDFT &lt;br&gt;
for k=1:N&lt;br&gt;
x(w)=sum( n=0 n=N-1) x(n) exp ( 2 pi freq(k) time(n))&lt;br&gt;
&lt;br&gt;
So here is my question, i was trying to derive the DFT notation of matlab, which is given in help..in that derivation i need to assume that its is equally spaced or my twiddle factor vectors are equally spaced. so DFT notation and NDFT notatin should have some different, also both give different results . DFT Notation of matlab give same result as FFT but NDFT notation give different results &lt;br&gt;
&lt;br&gt;
Greg &amp;lt;heath@alumni.brown.edu&amp;gt; wrote in message &amp;lt;496ce8c4-8e49-4b17-9d27-efff652e77ea@b14g2000yqd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jul 1, 2:02?am, &quot;guj &quot; &amp;lt;gulatiaks...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I was doing an experiment, and find thatFFTand NDFT are giving little different results when i implement it on uniform sampled sin signal with 101 samples.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Although results are same. Only difference is the some noise near the spike. Noise is zero in case of NDFT but little noise can be seen inFFT?Should i expect the same results from both of them&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Since floating point calculations are used, you will have to&lt;br&gt;
&amp;gt; quantify&lt;br&gt;
&amp;gt; your statement. What is the normalized mean-squared error&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mean(abs(X2-X1).^2)/mean(abs(X1-mean(X1)))&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope this helps.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Greg&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Any comments will be appreciated. I have some images for what i have done, if some body interested in seeing. Drop me a ?mail at pinkfloydin...@yahoo.com&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If your error is sisnificant and I have some time, I will look at it.</description>
    </item>
    <item>
      <pubDate>Tue, 07 Jul 2009 05:09:10 -0400</pubDate>
      <title>Re: FFT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255051#663110</link>
      <author>Greg</author>
      <description>On Jul 6, 11:58&#160;am, &quot;guj &quot; &amp;lt;gulatiaks...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Can any one tell me difference between these notations&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matlab DFT&lt;br&gt;
&amp;gt; for K=1:N&lt;br&gt;
&amp;gt; for n=1:N&lt;br&gt;
&amp;gt; x(w)=sum( n=0 n=N-1) x(n) exp ( 2 pi (k-1) (n-1) /N)&lt;br&gt;
&lt;br&gt;
You need to proof read your post. Taken literally,&lt;br&gt;
what you have written is garbage.&lt;br&gt;
&lt;br&gt;
Try again.&lt;br&gt;
&lt;br&gt;
&amp;gt; NDFT&lt;br&gt;
&amp;gt; for k=1:N&lt;br&gt;
&amp;gt; x(w)=sum( n=0 n=N-1) x(n) exp ( 2 pi freq(k) time(n))&lt;br&gt;
&lt;br&gt;
If you do things correctly you should get EXACTLY the same result.&lt;br&gt;
when freq and time are uniformly spaced.&lt;br&gt;
&lt;br&gt;
&amp;gt; So here is my question, i was trying to derive the DFT notation of matlab, which is given in help..in that derivation i need to assume that its is equally spaced or my twiddle factor vectors are equally spaced. so DFT notation and NDFT notatin should have some different, also both give different results . DFT Notation of matlab give same result as FFT but NDFT notation give different results&lt;br&gt;
&lt;br&gt;
It shouldn't you made a mistake some where.&lt;br&gt;
&lt;br&gt;
See my last post in &quot;FFT,IFFT, and NDFT,NFFT &quot;&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg&lt;br&gt;
&lt;br&gt;
-----SNIP</description>
    </item>
  </channel>
</rss>

