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.

回答(1 个)

Star Strider
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.
.

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by