<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237833</link>
    <title>MATLAB Central Newsreader - FFT of signal segments</title>
    <description>Feed for thread: FFT of signal segments</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>Mon, 20 Oct 2008 14:01:18 -0400</pubDate>
      <title>FFT of signal segments</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237833#606326</link>
      <author>Dave Brackett</author>
      <description>Hi, I have written some code to do a FFT based on this example but with a Hann window:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/tech-notes/1700/1702.html&quot;&gt;http://www.mathworks.com/support/tech-notes/1700/1702.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I am basically doing a STFT (short time FT) and comparing frequencies and power over time. So I am splitting up a recorded signal into many segments and computing a FFT on each. &lt;br&gt;
&lt;br&gt;
The thing that I am finding curious though is that the more segments that I split the signal into, the greater the power in the FFT for each segment. Should this be the case? I would have thought the opposite should be observed because of the reduction in power that windowing causes.&lt;br&gt;
&lt;br&gt;
Because I am using a Hann window, I have divided the FFT magnitude by 0.5 which is the coherent gain scaling factor.&lt;br&gt;
I could post my code here but as it is based on the example at the above link it probably would only serve to confuse. &lt;br&gt;
&lt;br&gt;
If someone could clarify what I should expect to see when splitting the signal into several segments as compared to 1 segment, with regards to the power, that would be useful. Thanks.</description>
    </item>
    <item>
      <pubDate>Mon, 20 Oct 2008 14:40:17 -0400</pubDate>
      <title>Re: FFT of signal segments</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237833#606349</link>
      <author>Steve Amphlett</author>
      <description>&quot;Dave Brackett&quot; &amp;lt;davebrackett@hotmail.com&amp;gt; wrote in message &amp;lt;gdi2ve$cud$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, I have written some code to do a FFT based on this example but with a Hann window:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/support/tech-notes/1700/1702.html&quot;&gt;http://www.mathworks.com/support/tech-notes/1700/1702.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am basically doing a STFT (short time FT) and comparing frequencies and power over time. So I am splitting up a recorded signal into many segments and computing a FFT on each. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The thing that I am finding curious though is that the more segments that I split the signal into, the greater the power in the FFT for each segment. Should this be the case? I would have thought the opposite should be observed because of the reduction in power that windowing causes.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Because I am using a Hann window, I have divided the FFT magnitude by 0.5 which is the coherent gain scaling factor.&lt;br&gt;
&amp;gt; I could post my code here but as it is based on the example at the above link it probably would only serve to confuse. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If someone could clarify what I should expect to see when splitting the signal into several segments as compared to 1 segment, with regards to the power, that would be useful. Thanks.&lt;br&gt;
&lt;br&gt;
Your 0.5 will correct the amplitude.  For energy correction, use sqrt(3/8).  Most people would express the correction the other way up:&lt;br&gt;
&lt;br&gt;
Multiply by 2 for amplitude, sqrt(8/3) for energy.</description>
    </item>
    <item>
      <pubDate>Mon, 20 Oct 2008 14:50:45 -0400</pubDate>
      <title>Re: FFT of signal segments</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237833#606353</link>
      <author>Dave</author>
      <description>On Oct 20, 3:40=A0pm, &quot;Steve Amphlett&quot; &amp;lt;Firstname.Lastn...@Where-I-&lt;br&gt;
Work.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Dave Brackett&quot; &amp;lt;davebrack...@hotmail.com&amp;gt; wrote in message &amp;lt;gdi2ve$cu...=&lt;br&gt;
@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi, I have written some code to do a FFT based on this example but with=&lt;br&gt;
&amp;nbsp;a Hann window:&lt;br&gt;
&amp;gt; &amp;gt;&lt;a href=&quot;http://www.mathworks.com/support/tech-notes/1700/1702.html&quot;&gt;http://www.mathworks.com/support/tech-notes/1700/1702.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I am basically doing a STFT (short time FT) and comparing frequencies a=&lt;br&gt;
nd power over time. So I am splitting up a recorded signal into many segmen=&lt;br&gt;
ts and computing a FFT on each.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The thing that I am finding curious though is that the more segments th=&lt;br&gt;
at I split the signal into, the greater the power in the FFT for each segme=&lt;br&gt;
nt. Should this be the case? I would have thought the opposite should be ob=&lt;br&gt;
served because of the reduction in power that windowing causes.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Because I am using a Hann window, I have divided the FFT magnitude by 0=&lt;br&gt;
.5 which is the coherent gain scaling factor.&lt;br&gt;
&amp;gt; &amp;gt; I could post my code here but as it is based on the example at the abov=&lt;br&gt;
e link it probably would only serve to confuse.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; If someone could clarify what I should expect to see when splitting the=&lt;br&gt;
&amp;nbsp;signal into several segments as compared to 1 segment, with regards to the=&lt;br&gt;
&amp;nbsp;power, that would be useful. Thanks.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Your 0.5 will correct the amplitude. =A0For energy correction, use sqrt(3=&lt;br&gt;
/8). =A0Most people would express the correction the other way up:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Multiply by 2 for amplitude, sqrt(8/3) for energy.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
just to clarify, is the correction of energy the one to use when&lt;br&gt;
plotting power?&lt;br&gt;
&lt;br&gt;
also, I don't think the problem of the different FFT peak magnitudes&lt;br&gt;
is to do with this correction factor as this just scales it by the&lt;br&gt;
same amount.&lt;br&gt;
cheers.</description>
    </item>
    <item>
      <pubDate>Mon, 20 Oct 2008 21:29:02 -0400</pubDate>
      <title>Re: FFT of signal segments</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237833#606465</link>
      <author>Steve Amphlett</author>
      <description>&amp;lt;snip, correction factors...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; Your 0.5 will correct the amplitude. =A0For energy correction, use sqrt(3=&lt;br&gt;
&amp;gt; /8). =A0Most people would express the correction the other way up:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Multiply by 2 for amplitude, sqrt(8/3) for energy.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; just to clarify, is the correction of energy the one to use when&lt;br&gt;
&amp;gt; plotting power?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; also, I don't think the problem of the different FFT peak magnitudes&lt;br&gt;
&amp;gt; is to do with this correction factor as this just scales it by the&lt;br&gt;
&amp;gt; same amount.&lt;br&gt;
&amp;gt; cheers.&lt;br&gt;
&lt;br&gt;
If you integrate the hanning window, you'll get the amplitude correction.  If you integrate the square of the window, you'll get the energy correction.&lt;br&gt;
&lt;br&gt;
Which correction you use is your choice and depends on your application.  In the software that I write, I use amplitude for all plots of dB (I do acoustics) vs frequency.  But anything that involves summation to get an overall level will require energy correction.</description>
    </item>
  </channel>
</rss>

