필터 지우기
필터 지우기

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

조회 수: 16 (최근 30일)
遥葵 田中
遥葵 田中 2021년 11월 26일
댓글: 遥葵 田中 2021년 12월 1일
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일
"bandpass"へ入力しているP1はfft後の値(周波数軸のデータ)の様ですが、"bandpass"へ与える第一引数(フィルタへの入力)は、時間軸のデータとすべきではないでしょうか?
  댓글 수: 1
遥葵 田中
遥葵 田中 2021년 12월 1일
なるほど!! やっと理解できました。ありがとうございます。

댓글을 달려면 로그인하십시오.

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!