| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Filter Design Toolbox |
| Contents | Index |
| Learn more about Filter Design Toolbox |
phasedelay(hd) [phi,w]=phasedelay(hd,n) [phi,w]=phasedelay(...,f) phasedelay(hm) [phi,w] = phasedelay(hm,n) [phi,w] = phasedelay(...,f) [phi,w] = phasedelay(...,fs)
The following sections describe phasedelay operation for discrete-time filters and multirate filters. For more information about optional input arguments for phasedelay, refer to phasez in Signal Processing Toolbox documentation.
phasedelay(hd) displays the phase delay response of hd in the Filter Visualization Tool (FVTool).
[phi,w]=phasedelay(hd,n) returns vectors phi and w containing the instantaneous phase delay response of the adaptive filter hd, and the frequencies in radians at which it is evaluated. The response is evaluated at n points equally spaced around the upper half of the unit circle. When you do not specify n, it defaults to 8192.
If hd is a vector of filter objects, phasedelay returns phi as a matrix. Each column of phi corresponds to one filter in the vector. If you provide a row vector of frequency points f as an input argument, each row of phi corresponds to each filter in the vector. You can provide fs, the sampling frequency, as an input as well. phasedelay uses fs to calculate the delay response and plots the response to fs/2.
phasedelay(hm) displays the phase response of hm in the Filter Visualization Tool (FVTool).
[phi,w]=phasedelay(hm,n) returns vectors phi and w containing the instantaneous phase delay response of the adaptive filter hm, and the frequencies in radians at which it is evaluated. The response is evaluated at n points equally spaced around the upper half of the unit circle. When you do not specify n, it defaults to 8192.
If hm is a vector of filter objects, phasedelay returns phi as a matrix. Each column of phi corresponds to one filter in the vector. If you provide a row vector of frequency points f as an input argument, each row of phi corresponds to each filter in the vector.
Note that the multirate filter delay response is computed relative to the rate at which the filter is running. When you specify fs (the sampling rate) as an input argument, phasedelay assumes the filter is running at that rate.
For multistage cascades, phasedelay forms a single-stage multirate filter that is equivalent to the cascade and computes the response relative to the rate at which the equivalent filter is running. phasedelay does not support all multistage cascades. Only cascades for which it is possible to derive an equivalent single-stage filter are allowed for analysis.
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. An equivalent single-stage filter with an overall interpolation factor of 8 can be found. phasedelay uses the equivalent filter for the analysis. If a sampling frequency fs is specified as an input argument to phasedelay, the function interprets fs as the rate at which the equivalent filter is running.
freqz, grpdelay, phasez, zerophase, zplane
freqz, fvtool, phasez, zerophase in Signal Processing Toolbox documentation
![]() | parallel | phasez | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |