Phase delay of filter
[phi,w] = phasedelay(hs)
[phi,w] = phasedelay(hs,n)
[phi,w] = phasedelay(hs,Name,Value)
phasedelay returns the phase delay based
on the current filter coefficients. This section describes
for discrete-time filters and multirate filters. For more information
about optional input arguments for
phasedelay in Signal Processing Toolbox™ documentation.
The phase delay is evaluated at 8192 points equally spaced around the upper half of the unit circle.
the phase delay
phi of the filter
the corresponding frequencies
w at which the function
evaluates the phase delay. The phase delay is evaluated at
equally spaced around the upper half of the unit circle.
the phase delay of
hfilt in the Filter Visualization
phasedelay(hs) uses FVTool
to plot the phase delay of the filter System object
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
The multirate filter delay response is computed relative to
the rate at which the filter is running. When you specify
For multistage cascades,
As an example, consider a 2-stage interpolator where the first
stage has an interpolation factor of 2 and the second stage has an
interpolation factor of 4. In this case, an equivalent single-stage
filter exists with an overall interpolation factor of 8.
Filter System object.
The following Filter System objects are supported by this analysis function:
Number of samples. For an FIR filter where
Specify optional comma-separated pairs of
Name is the argument
Value is the corresponding
Name must appear
inside single quotes (
You can specify several name and value pair
arguments in any order as
'Arithmetic'— Value types:
For filter System object inputs only, 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.
For adaptive filters,
Frequency vector of length
You can provide
fs, the sampling frequency,
as an input as well.
calculate the delay response and plots the response to