Monday, September 30, 2019

Re: [Discuss-gnuradio] Determine index of max value in FFT

Hi Tom,

My usual approach is to write an Embedded Python Block and use the numpy functions to find the max. You can add in any other operations that you want to do once you know the max value and index such as converting it to a frequency.

Regards,
Derek

On 30/09/2019 14:27, tom sutherland via Discuss-gnuradio wrote:
How do you determine the index of the maximum value of the output of a FFT? e.g. I have a FFT  and then a "ComplexToMag^2" block and I want to know the max value and its corresponding index (i.e. for a 4096 point FFT the index occured at 63).
Thanks...Tom

_______________________________________________  Discuss-gnuradio mailing list  Discuss-gnuradio@gnu.org  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio  

No comments:

Post a Comment