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 - The Fusion of Science and Community**

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

Loading...

Similar Threads for MATLAB Fast Fourier | Date |
---|---|

MATLAB MATLAB: forces acting on an object | Apr 6, 2018 |

Using the Fourier Transform on Partitioned Images | Dec 3, 2015 |

Implementation of Fresnel Diffraction in MatLab | May 22, 2015 |

Fast Fourier transform - MATLAB | Jun 29, 2011 |

Matlab/Fast Fourier Transform | Sep 16, 2006 |

**Physics Forums - The Fusion of Science and Community**