signal processing - C program fast fourier transform error advice -


so bit confused error having taking fft of sine wave. fft function given us; function has fill in first input array 256 samples of magnitude second input array 0. function takes fft in place , returns index of peak frequency.

so not sure how convert returned index actual frequency of input wave. equation given frequency = samplefrequency * index / n. tried sample frequency 3 times maximum input frequency , follow guidelines still not getting correct frequency results. advice helpful; thanks!


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -