Trying to find FIR filter coefficients
25 次查看(过去 30 天)
显示 更早的评论
b = fir1(25,pi/6,rectwin(26));
This is the windowed filter I have created and I was wodnering if someone could show me how to find its coefficients.
0 个评论
回答(1 个)
Star Strider
2021-11-18
The ‘b’ vector are the coefficients, however specifying a sampling frequency of the signal the filter is designed to work with would be necessary to use it in practice.
That vector produces this frequency characteristic —
b = fir1(25,pi/6,rectwin(26));
figure
freqz(b, 1, 2^16)
To filter a signal with them, use the filtfilt function.
.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!