Extracting frequency from fft command

I found a post for you that asking about code for extracting particular frequency from fft,if you don't mind, i need something like that in another algorithm.
Thanks,

回答 (1 件)

Matt J
Matt J 2013 年 10 月 17 日

0 投票

For an N-point fft with time sampling interval T, the output of fftshift(fft(...)) has frequency axis (Hz) given by,
fAxis=( (0:N-1) -ceil((N-1)/2) )/N/T;

2 件のコメント

saad
saad 2013 年 10 月 17 日
sorry, but i didn't how to added to my code.
Tewodros Abebe
Tewodros Abebe 2021 年 6 月 6 日
Sorry, i need to shift center frequency in 2/T. so how can i plot?

サインインしてコメントする。

タグ

質問済み:

2013 年 10 月 16 日

コメント済み:

2021 年 6 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by