FFT後のデータにバ​ンドパスフィルターを​かけたいが、指定の範​囲にかからない。

12 vues (au cours des 30 derniers jours)
遥葵 田中
遥葵 田中 le 26 Nov 2021
Commenté : 遥葵 田中 le 1 Déc 2021
T = 0.01; %
L = 4096; %
Y = fft(date);
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
Fs = 1/T;
F = Fs*(0:(L/2))/L;
Z = bandpass(P1,[2 6],Fs)
plot(F,Z)

Réponses (1)

takemoto
takemoto le 29 Nov 2021
"bandpass"へ入力しているP1はfft後の値(周波数軸のデータ)の様ですが、"bandpass"へ与える第一引数(フィルタへの入力)は、時間軸のデータとすべきではないでしょうか?
  1 commentaire
遥葵 田中
遥葵 田中 le 1 Déc 2021
なるほど!! やっと理解できました。ありがとうございます。

Connectez-vous pour commenter.

Catégories

En savoir plus sur フーリエ解析とフィルター処理 dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!