Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Spectrum analyzer

  1. Aug 7, 2003 #1
    I tried to obtain the spectrum of a discrete signal and I had some problems...
    If I compute on a PC the discrete fourier transform (FFT or DFT) I obtain valid fourier transforms (the same Excel computes...)...
    ...but how do I analyze a wave obtained using a microphone ? I don't get the same results professional programs do...I tried using as the "intensity" of a frequency the magnitude...I tried using the real component...the complex one...but still no good...
    Can you help ?
  2. jcsd
  3. Aug 9, 2003 #2
    How about
    intensity(f) = [squ](R2(f)+I2(f))
    where R is the real component, and I is the imaginary one.
  4. Aug 10, 2003 #3


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You're looking for what is called the "power spectrum." The book "Numerical Recipes in C" is the best place to look (as usual!).

    It's available in its entirety, free of charge, at http://www.nr.com

    Chapter 12 deals with Fourier transforms and power spectra.

    - Warren
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook