Can you graph a simple FIR filter frequency response from the coefficients?

2 views (last 30 days)
I have just learned how to create FIR filters (ie. the coefficients for a direct-form FIR). I have been creating the FIR filters from frequency-magnitude equations where I have an equation telling me the ideal magnitude of every frequency.
I would like to test my FIR coefficients out by graphing them against the original frequency-magnitude equation from which they're derived.
Is there any simple MATLAB code that would let me graph the frequency response in Hz of an array of 32 or 64 or 128 FIR coefficients?
Thanks.

Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by