Trying to find FIR filter coefficients
25 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Star Strider
on 18 Nov 2021
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 Comments
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!