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

Contact us at files@mathworks.com