Documentation |
Phase delay of filter
[phi,w]=phasedelay(hfilt)
[phi,w]=phasedelay(hfilt,n)
phasedelay(hfilt)
[phi,w]
= phasedelay(hs)
[phi,w]
= phasedelay(hs,n)
[phi,w]
= phasedelay(hs,Name,Value)
phasedelay(hs)
phasedelay returns the phase delay based on the current filter coefficients. This section describes phasedelay operation for discrete-time filters and multirate filters. For more information about optional input arguments for phasedelay, refer to phasedelay in Signal Processing Toolbox™ documentation.
[phi,w]=phasedelay(hfilt) returns the phase response phi of the filter hfilt and the corresponding frequencies w at which the function evaluates the phase delay.
The phase delay is evaluated at 8192 points equally spaced around the upper half of the unit circle.
[phi,w]=phasedelay(hfilt,n) returns the phase delay phi of the filter hfilt and the corresponding frequencies w at which the function evaluates the phase delay. The phase delay is evaluated at n points equally spaced around the upper half of the unit circle.
phasedelay(hfilt) displays the phase delay of hfilt in the Filter Visualization Tool (FVTool).
[phi,w] = phasedelay(hs) returns the phase delay for the filter System object™ hs using 8192 samples.
[phi,w] = phasedelay(hs,n) returns the phase delay for the filter System object hs using n samples.
[phi,w] = phasedelay(hs,Name,Value) returns the phase delay with additional options specified by one or more Name,Value pair arguments.
phasedelay(hs) uses FVTool to plot the phase delay of the filter System object hs.
phi |
Complex, n-element phase-delay vector. If hfilt is a vector of filters, phi is a complex, length(hfilt)-by-n matrix of phase-delay vectors whose columns correspond to each filter in hfilt. If n is not specified, the function uses a default value of 8192. For adaptive filters, phi is the instantaneous phase delay. |
w |
Frequency vector of length n, in radians/sample. w consists of n points equally spaced around the upper half of the unit circle (from 0 to π radians/sample). If hfilt is a vector of filters, w is a complex, length(hfilt)-by-n matrix of phase-delay vectors whose columns correspond to each filter in hfilt. If n is not specified, the function uses a default value of 8192. |