How do find the frequency from a FFT graph?

조회 수: 3 (최근 30일)
Aidil AA
Aidil AA 2018년 10월 9일
댓글: Aidil AA 2018년 10월 10일
Hi guys, I have an audiowave file, I have gotten the time domain and the fft graph. My question what is the next step to find the frequency from the fft graph? Thanks.
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 10월 9일
Check here it may be helpful.
KSSV
KSSV 2018년 10월 9일
YOu can click using datatips...or use findpeaks. Or +sort_ the x-axis and pick the respective required y-axes i.e frequencies.

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

채택된 답변

David Goodmanson
David Goodmanson 2018년 10월 9일
Hi Aidil,
if there are N points in the data array, then the frequency array consists of N points with spacing fs/N. The following example uses fftshift to put zero frequency at the center of the array. It's slightly different for N even or N odd.
data_fft = fftshift(fft(data))
N = length(data);
if rem(N,2) == 0
f = (-N/2:N/2-1) *(fs/N) % N is even
else
f = (-(N-1)/2:(N-1)/2)*(fs/N)
end
plot(f,abs(data_fft))
  댓글 수: 1
Aidil AA
Aidil AA 2018년 10월 10일
Thanks David, I finally understand it now. Cheers!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by