Modifying the gain of fir1 filter

18 views (last 30 days)
I'm am creating a FIR equalizer. However I am having trouble modifying the gain of individual filters. I have attempted multiplying the output by a decimal. How would I approach this?

Accepted Answer

Star Strider
Star Strider on 13 Jan 2017
I would scale the denominator of the transfer function. If ‘hh’ is your filter numerator, and ‘y’ is your signal, you can increase the gain of the filter by 10 with a denominator value of 1/10:
yf = filtfilt(hh,0.1,y);
I tried this and it works. I’ll post the full code if you would like.
  4 Comments
simply cambio
simply cambio on 13 Jan 2017
Thanks a lot Star Strider! Ill try to implement this shortly.
Star Strider
Star Strider on 13 Jan 2017
My pleasure!
If my Answer solves your problem, please Accept it!

Sign in to comment.

More Answers (0)

Categories

Find more on Signal Processing Toolbox 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!