<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240228</link>
    <title>MATLAB Central Newsreader - Fold Amplitude Spectrum</title>
    <description>Feed for thread: Fold Amplitude Spectrum</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, 01 Dec 2008 16:19:01 -0500</pubDate>
      <title>Fold Amplitude Spectrum</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240228#614207</link>
      <author>Neo </author>
      <description>Hi does anyone know how to fold the amplitude spectrum below. There is a line of symmetry at about 4800 on my spectrum and I need the values on the right of this line to be on the negative x axis. I believe this is called folding the amplitude spectrum.&lt;br&gt;
&lt;br&gt;
Any help much appreciated.&lt;br&gt;
&lt;br&gt;
[s,fs,M]=wavread('dogbark.wav');&lt;br&gt;
&lt;br&gt;
N=length(s)&lt;br&gt;
T=1/fs;&lt;br&gt;
y=fft(s);&lt;br&gt;
X=y/N;&lt;br&gt;
P=N*T;&lt;br&gt;
f0=1/P;&lt;br&gt;
Nf=N/2+1;&lt;br&gt;
freq=[0:f0:(N-1)*f0];&lt;br&gt;
&lt;br&gt;
stem(abs(Ax))&lt;br&gt;
title('Amplitude Spectrum of Dogbark.wav')&lt;br&gt;
xlabel('Frequency (Hz)')&lt;br&gt;
ylabel('Amplitude')</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 16:55:44 -0500</pubDate>
      <title>Re: Fold Amplitude Spectrum</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240228#614214</link>
      <author>Rune Allnor</author>
      <description>On 1 Des, 17:19, &quot;Neo&quot; &amp;lt;wills0...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi does anyone know how to fold the amplitude spectrum below. There is a line of symmetry at about 4800 on my spectrum and I need the values on the right of this line to be on the negative x axis.&lt;br&gt;
&lt;br&gt;
doc fftshift&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
  </channel>
</rss>

