Functions > Signal Processing > Digital Filtering > Filter Gain
  
Filter Gain
gain(C, f)—Returns the gain at frequency f of a filter with coefficients C.
Arguments
C is a real or complex-valued vector or array of filter coefficients:
FIR filter: C has one column
IIR filter: C has column pairs:
column 1 contains coefficients of the numerator
column 2 contains coefficients of the denominator.
f is a positive real number (or real-valued vector) between 0 and 1. It represents the frequency as a fraction of the sampling frequency. Frequency is generally between 0 and 0.5.
f may be defined as a range variable.
Additional Information
The gain function is used to compute the complex gain of a digital Finite Impulse Response (FIR) or analog Infinite Impulse Response (IIR) filter.
IIR transfer functions must be normalized so that the constant term in the denominator is 1.