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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -