フィルターのクリア

i sampled a 50Hz signal at 800Hz and i want to use FFt to extract the magnitude of the fundamental frequency (50Hz). how do i go about it? Please can anyone be of help. Thank you

3 ビュー (過去 30 日間)
i sampled a 50Hz signal at 800Hz and i want to use FFt to extract the magnitude of the fundamental frequency (50Hz). how do i go about it? Please can anyone be of help. Thank you

回答 (1 件)

Star Strider
Star Strider 2017 年 6 月 26 日
See the documentation on fft (link). Specifically note the code between the first (top) two plot figures.
  2 件のコメント
Peter Mbamaluikem
Peter Mbamaluikem 2017 年 6 月 26 日
Sir, the link is asking me for a license activation code
Star Strider
Star Strider 2017 年 6 月 26 日
This is essentially the code I referred to:
D = Your_Signal;
Fs = 800; % Sampling Frequency (Hz)
Fn = Fs/2; % Nyquist Frequency (Hz)
L = length(D);
FTD = fft(D)/L;
Fv = linspace(0, 1, fix(L/2)+1)*Fn; % Frequency Vector (Hz)
Iv = 1:length(Fv); % Index Vector
figure(1)
plot(Fv, abs(FTD(Iv))*2)
grid

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

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by