Frequency response of discrete-time filterSystem object
[
returns the complex frequency responseh
,w
] = freqz(sysobj
)h
of the filter System object™,sysobj
. The vectorw
contains the frequencies (in radians/sample) at which the function evaluates the frequency response. The frequency response is evaluated at 8192 points equally spaced around the upper half of the unit circle.
[
returns the complex frequency response of the filter System object and the corresponding frequencies ath
,w
] = freqz(sysobj
,n
)n
points equally spaced around the upper half of the unit circle.
freqz
uses the transfer function associated with the filter to calculate the frequency response of the filter with the current coefficient values.
There are several ways of analyzing the frequency response of filters.freqz
accounts for quantization effects in the filter coefficients, but does not account for quantization effects in filtering arithmetic. To account for the quantization effects in filtering arithmetic, refer to functionnoisepsd
.
freqz
calculates the frequency response for a filter from the filter transfer functionHq(z). The complex-valued frequency response is calculated by evaluatingHq(ejω) at discrete values ofw你使用指定的语法。整数输入argumentn
determines the number of equally-spaced points around the upper half of the unit circle at whichfreqz
evaluates the frequency response. The frequency ranges from 0 to π radians per sample when you do not supply a sampling frequency as an input argument. When you supply the scalar sampling frequencyfs
as an input argument tofreqz
, the frequency ranges from 0 tofs
/2 Hz.