Filter signal with 2 different frequencies

8 ビュー (過去 30 日間)
Sam Hurrell
Sam Hurrell 2022 年 9 月 14 日
コメント済み: Star Strider 2022 年 9 月 15 日
I have an equation which gives 2 gaussian-sinc pulses of different frequencies, in dataset wrt time (t = 0:0.001:100). When put into an fft the two frequencies are found, but I want to design a filter for the signal to remove one of the pulses. How can I do this to the signal below for different values for f1 and f2?
f1 = 2.5, f2 = 1.5, s1 = 1.2/f1, s2 = 1.2/f2
D = cos(2*pi*f1*(t-10))*exp(-(t-10).^2/(2*s1^2)) + cos(2*pi*f2*(t-20))*exp(-(t-20).^2/(2*s2^2))

採用された回答

Star Strider
Star Strider 2022 年 9 月 14 日
Use either the bandpass or bandstop functions, depending on the result you want.
For best results, use the 'ImpulseResponse','iir' name-value pair.
.
  4 件のコメント
Sam Hurrell
Sam Hurrell 2022 年 9 月 15 日
That seems to have fixed it, thank you
Star Strider
Star Strider 2022 年 9 月 15 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by