Trying to find FIR filter coefficients

25 views (last 30 days)
Matthew Shewfelt
Matthew Shewfelt on 18 Nov 2021
Answered: Star Strider on 18 Nov 2021
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.

Answers (1)

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

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!