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!