signal processing - C program fast fourier transform error advice -
this question has answer here:
- how obtain frequencies of each value in fft? 5 answers
- how frequency fft result? 1 answer
- how can dft/fft output frequencies in hertz? 1 answer
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
Post a Comment