I have run the following command:(adsbygoogle = window.adsbygoogle || []).push({});

c = wavread('sample.wav');

amplitude = log (abs(fft(c)));

and obtained the following plot:

[PLAIN]http://img179.imageshack.us/img179/8733/withoutplusone.jpg [Broken]

however, i was told to use this instead:

amplitude = log (1+abs(fft(c)));

and obtained the following plot:

[PLAIN]http://img146.imageshack.us/img146/4594/withplusone.jpg [Broken]

my question is: why do we have to take the log 1 plus amplitude, instead of just the log of amplitude.

thanks.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB: Fast Fourier Transform

**Physics Forums | Science Articles, Homework Help, Discussion**