Phase delay response of discrete-time filter System object
[phi,w] = phasedelay(sysobj,n)
[phi,w] = phasedelay(sysobj,Name,Value)
[ returns the phase
phi of the filter System
based on the current filter coefficients. The vector
the frequencies (in radians) at which the phase delay is evaluated.
The phase delay is evaluated at 8192 points equally spaced around the upper half of the unit circle.
the phase delay of the filter System
For information on more input options, refer to
phasedelay in Signal
Processing Toolbox™ documentation.
Fs = 8000; Fcutoff = 2000; FIRFilt = dsp.FIRFilter('Numerator', fir1(130,Fcutoff/(Fs/2)));
phasedelay computes the phase delay of the filter and displays it using fvtool
Filter System object.
The following Filter System objects are supported by this analysis function:
Number of samples. For an FIR filter where
comma-separated pairs of
the argument name and
Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
'Arithmetic'— Value types:
Specify the arithmetic used during analysis. When you specify
the function performs double- or single-precision analysis. When you
'fixed' , the arithmetic changes depending
on the setting of the
and whether the System
object is locked or unlocked.
When you do not specify the arithmetic for non-CIC structures, the function uses double-precision arithmetic if the filter System object is in an unlocked state. If the System object is locked, the function performs analysis based on the locked input data type. CIC structures only support fixed-point arithmetic.
Phase delay vector of length
Frequency vector of length
You can provide
fs, the sampling frequency, as an input as well.
fs to calculate the delay
response and plots the response to