Modifying the gain of fir1 filter
18 views (last 30 days)
Show older comments
simply cambio
on 13 Jan 2017
Commented: Star Strider
on 13 Jan 2017
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?
0 Comments
Accepted Answer
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
More Answers (0)
See Also
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!