Using sinc() in a filter desing

7 ビュー (過去 30 日間)
Danijel
Danijel 2018 年 3 月 20 日
コメント済み: MUHAMMAD ZAKI 2021 年 2 月 2 日
In order to design a filter (windowing method), I first generate my sinc function like so:
L = 20;
fc = 0.25;
n = (1:L)';
my_sinc = sin(2*pi*fc*(n-L/2)) ./ (pi*(n-L/2));
my_sinc(L/2) = 2*fc;
Then I apply window:
win = blackman(L, 'symmetric');
filter_coeffs = (my_sinc .* win);
Can the first step be done using Matlab builtin sinc()?

採用された回答

Danijel
Danijel 2018 年 3 月 20 日
This works:
2*fc * sinc(2*fc*(n-L/2))
  1 件のコメント
MUHAMMAD ZAKI
MUHAMMAD ZAKI 2021 年 2 月 2 日
Hi, For the line my_sinc(L/2)=2*fc above, we don't need to use right?

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by