FFT後のデータにバンドパスフィルターをかけたいが、指定の範囲にかからない。
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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)
0 Kommentare
Antworten (1)
takemoto
am 29 Nov. 2021
"bandpass"へ入力しているP1はfft後の値(周波数軸のデータ)の様ですが、"bandpass"へ与える第一引数(フィルタへの入力)は、時間軸のデータとすべきではないでしょうか?
Siehe auch
Kategorien
Mehr zu マルチレート信号処理 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!