필터 지우기
필터 지우기

Getting the frequency of all peaks after doing fft

조회 수: 3 (최근 30일)
Chris Matthews
Chris Matthews 2017년 9월 27일
답변: Star Strider 2017년 9월 27일
Im running a pretty old version of matlab (without the findpeaks function) and want to determine the frequency of all of the peaks in a signal after doing fft.
Any ideas about how to go about this? Ideally, i want to do my fft on a signal, determine the frequency values and spit them out into a table or something.
Thanks for help!
Chris

답변 (2개)

KSSV
KSSV 2017년 9월 27일
You can achieve the task with ease......sort the frequencies f, in descending order....and pick the first k number of frequencies you want.
  댓글 수: 2
Chris Matthews
Chris Matthews 2017년 9월 27일
How do you do this? That's the but I'm stuck on.
KSSV
KSSV 2017년 9월 27일
f = rand(10,1) ;
%%sort them
[f_sort,idx] = sort(f,'descend') ;
%%pick the first four
iwant = f_sort(1:4)

댓글을 달려면 로그인하십시오.


Star Strider
Star Strider 2017년 9월 27일
There are several peak-finding algorithms in the File Exchange. Search the File Exchange (link to the search) for one that does what you want.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by