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일

0 개 추천

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개)

카테고리

질문:

2018년 3월 20일

댓글:

2021년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by