discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Derek Kozel
Subject: Re: [Discuss-gnuradio] Determine index of max value in FFT
Date: Mon, 30 Sep 2019 17:26:56 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]