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

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)

回答 (1 件)

takemoto
takemoto 2021 年 11 月 29 日

0 投票

"bandpass"へ入力しているP1はfft後の値(周波数軸のデータ)の様ですが、"bandpass"へ与える第一引数(フィルタへの入力)は、時間軸のデータとすべきではないでしょうか?

1 件のコメント

遥葵 田中
遥葵 田中 2021 年 12 月 1 日
なるほど!! やっと理解できました。ありがとうございます。

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

カテゴリ

ヘルプ センター および File Exchangeフーリエ解析とフィルター処理 についてさらに検索

製品

リリース

R2021b

質問済み:

2021 年 11 月 26 日

コメント済み:

2021 年 12 月 1 日

Community Treasure Hunt

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

Start Hunting!