Using sinc() in a filter desing

조회 수: 9 (최근 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 CenterFile Exchange에서 Digital Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by