<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168772</link>
    <title>MATLAB Central Newsreader - Matlab FFT Calibration Routines</title>
    <description>Feed for thread: Matlab FFT Calibration Routines</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 05 May 2008 21:12:58 -0400</pubDate>
      <title>Re: Matlab FFT Calibration Routines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168772#430439</link>
      <author>Greg Heath</author>
      <description>On May 5, 4:29=A0pm, "John Costello" &amp;lt;JohnCoste...@ChampAero.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Does Matlab have a canned set of data for FFT analysis?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; What I am trying to find is a Matlab program that takes a&lt;br&gt;
&amp;gt; known set of data for a signal, computes the FFT and&lt;br&gt;
&amp;gt; extracts the spectral content and RMS equivalents of the&lt;br&gt;
&amp;gt; discrete sinusoids used to assimilate the signal...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For example, if we set up a known signal comprised of&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; f(t) =3D 5 + 2sin(2*pi*100*t) + 3sin(2*pi*1000*t)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; what do we get from the Matlab FFT analysis?&lt;br&gt;
&lt;br&gt;
What are you looking for?&lt;br&gt;
&lt;br&gt;
Results depend on N and dt. The FFT imposed&lt;br&gt;
period is&lt;br&gt;
&lt;br&gt;
T =3D N*dt&lt;br&gt;
&lt;br&gt;
Therefore, you should get the best results when&lt;br&gt;
100*N*dt =3D integer.&lt;br&gt;
&lt;br&gt;
t =3D dt*(0:N-1)';&lt;br&gt;
df =3D 1/T&lt;br&gt;
f =3D df*(0:N-1)';&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 20:43:02 -0400</pubDate>
      <title>Re: Matlab FFT Calibration Routines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168772#430430</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fvnqmf$5sv$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
John Costello &amp;lt;JohnCostello@ChampAero.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;Does Matlab have a canned set of data for FFT analysis?&lt;br&gt;
&lt;br&gt;
&amp;gt;What I am trying to find is a Matlab program that takes a &lt;br&gt;
&amp;gt;known set of data for a signal, computes the FFT and &lt;br&gt;
&amp;gt;extracts the spectral content and RMS equivalents of the &lt;br&gt;
&amp;gt;discrete sinusoids used to assimilate the signal...&lt;br&gt;
&lt;br&gt;
&amp;gt;For example, if we set up a known signal comprised of&lt;br&gt;
&lt;br&gt;
&amp;gt;f(t) = 5 + 2sin(2*pi*100*t) + 3sin(2*pi*1000*t)&lt;br&gt;
&lt;br&gt;
&amp;gt;what do we get from the Matlab FFT analysis?&lt;br&gt;
&lt;br&gt;
In my recent tests... what you get is something slightly different&lt;br&gt;
than the theoretical results, due to round off errors in calculations&lt;br&gt;
of the sines. The difference is particularily noticable if one computes&lt;br&gt;
in degrees (e.g., 25-ish cycles in 720 degrees stepping by 0.1 degrees)&lt;br&gt;
and almost seemed to suggest that the sind() routine was noticably&lt;br&gt;
inaccurate (the errors I found were several orders of magnitude higher&lt;br&gt;
than I could account for due to a simple constant multiplier.)&lt;br&gt;
Stepping over the same range in radians was *much* cleaner but errors in&lt;br&gt;
the 1e-15 range in the sine calculation result in detectable non-zero&lt;br&gt;
phases.&lt;br&gt;
&lt;br&gt;
If you back transform, ifft() from impulses with 0 phasing, then&lt;br&gt;
the difference against the computed sines will be very small but&lt;br&gt;
measurable.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;"The first draught serveth for health, the second for pleasure,&lt;br&gt;
&amp;nbsp;&amp;nbsp;the third for shame, the fourth for madness."  -- Sir Walter Raleigh&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 20:29:03 -0400</pubDate>
      <title>Matlab FFT Calibration Routines</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168772#430425</link>
      <author>John Costello</author>
      <description>Does Matlab have a canned set of data for FFT analysis?&lt;br&gt;
&lt;br&gt;
What I am trying to find is a Matlab program that takes a &lt;br&gt;
known set of data for a signal, computes the FFT and &lt;br&gt;
extracts the spectral content and RMS equivalents of the &lt;br&gt;
discrete sinusoids used to assimilate the signal...&lt;br&gt;
&lt;br&gt;
For example, if we set up a known signal comprised of&lt;br&gt;
&lt;br&gt;
f(t) = 5 + 2sin(2*pi*100*t) + 3sin(2*pi*1000*t)&lt;br&gt;
&lt;br&gt;
what do we get from the Matlab FFT analysis?&lt;br&gt;
&lt;br&gt;
thanks for any advice&lt;br&gt;
&lt;br&gt;
john costello&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
