Can anyone explain how to calculate the gain of a filter in matlab. I can simulate the filter using fdatool and it tells me the gain. However i cannot manually calculate the gain via the results viewer.
Its an iir filter and i have coefficients / transfer fucntion etc.
If u have coefficients a and b den use [H,W]=freqz(b,a,....) built in function of MATLAB. Plot abs(H) against W because you have to compute gain at each frequency W