Thread Subject: Fold Amplitude Spectrum

Subject: Fold Amplitude Spectrum

From: Neo

Date: 1 Dec, 2008 16:19:01

Message: 1 of 2

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.

Any help much appreciated.

[s,fs,M]=wavread('dogbark.wav');

N=length(s)
T=1/fs;
y=fft(s);
X=y/N;
P=N*T;
f0=1/P;
Nf=N/2+1;
freq=[0:f0:(N-1)*f0];

stem(abs(Ax))
title('Amplitude Spectrum of Dogbark.wav')
xlabel('Frequency (Hz)')
ylabel('Amplitude')

Subject: Fold Amplitude Spectrum

From: Rune Allnor

Date: 1 Dec, 2008 16:55:44

Message: 2 of 2

On 1 Des, 17:19, "Neo" <wills0...@hotmail.com> wrote:
> 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.

doc fftshift

Rune

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
wav Neo 1 Dec, 2008 11:20:21
amplitude Neo 1 Dec, 2008 11:20:21
spectrum Neo 1 Dec, 2008 11:20:21
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com