| 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 |
[gd,w] = grpdelay(ha)
[gd,w] = grpdelay(ha,n)
grpdelay(ha)
[gd,w] = grpdelay(hd)
[gd,w] = grpdelay(hd,n)
grpdelay(hd)
[gd,w] = grpdelay(hm)
[gd,w] = grpdelay(hm,n)
grpdelay(hm)
The next sections describe common grpdelay operation with adaptive, discrete-time, and multirate filters. For more input options, refer to grpdelay in Signal Processing Toolbox documentation.
For adaptive filters, grpdelay returns the instantaneous group delay based on the current filter coefficients.
[gd,w] = grpdelay(ha) returns the group delay vector gd and the corresponding frequency vector w for the adaptive filter ha. When ha is a vector of adaptive filters, grpdelay returns the matrix gd. Each column of gd corresponds to one filter in the vector ha. If you provide a row vector of frequency points f as an input argument, each row of gd corresponds to one filter in the vector.
Function grpdelay uses the transfer function associated with the adaptive filter to calculate the group delay of the filter with the current coefficient values. The vectors gd and w are both of length n. The frequency vector w has values ranging from 0 to π radians per sample. If you do not specify the integer n, or you specify it as the empty vector [], the frequency response is calculated using the default value of 8192 samples for the FFT.
[gd,w] = grpdelay(ha,n) returns length n vectors vector gd containing the current group delay for the adaptive filter ha and the vector w which contains the frequencies in radians at which grpdelay calculated the delay. Group delay is
![]()
The frequency response is evaluated at n points equally spaced around the upper half of the unit circle. For FIR filters where n is a power of two, the computation is done faster using FFTs. When you do not specify n, it defaults to 8192.
grpdelay(ha) uses FVTool to plot the group delay of the adaptive filter ha. If ha is a vector of filters, grpdelay plots the magnitude response and phase for each filter in the vector.
[gd,w] = grpdelay(hd) returns the group delay vector gd and the corresponding frequency vector w for the discrete-time filter hd. When hd is a vector of discrete-time filters, grpdelay returns the matrix gd. Each column of gd corresponds to one filter in the vector hd. If you provide a row vector of frequency points f as an input argument, each row of gd corresponds to each filter in the vector.
Function grpdelay uses the transfer function associated with the discrete-time filter to calculate the group delay of the filter. The vectors gd and w are both of length n. The frequency vector w has values ranging from 0 to π radians per sample. If you do not specify the integer n, or you specify it as the empty vector [], the frequency response is calculated using the default value of 8192 samples for the FFT.
[gd,w] = grpdelay(hd,n) returns length n vectors vector gd containing the current group delay for the discrete-time filter hd and the vector w which contains the frequencies in radians at which grpdelay calculated the delay. Group delay is
![]()
The frequency response is evaluated at n points equally spaced around the upper half of the unit circle. For FIR filters where n is a power of two, the computation is done faster using FFTs. When you do not specify n, it defaults to 8192.
grpdelay(hd) uses FVTool to plot the group delay of the discrete-time filter hd. If hd is a vector of filters, grpdelay plots the magnitude response and phase for each filter in the vector.
[gd,w] = grpdelay(hm) returns the group delay vector gd and the corresponding frequency vector w for the multirate filter hm. When hm is a vector of multirate filters, grpdelay returns the matrix gd. Each column of gd corresponds to one filter in the vector hm. If you provide a row vector of frequency points f as an input argument, each row of gd corresponds to one filter in the vector.
Function grpdelay uses the transfer function associated with the multirate filter to calculate the group delay of the filter. The vectors gd and w are both of length n. The frequency vector w has values ranging from 0 to π radians per sample. If you do not specify the integer n, or you specify it as the empty vector [], the frequency response is calculated using the default value of 8192 samples for the FFT.
[gd,w] = grpdelay(hm,n) returns length n vectors vector gd containing the group delay for the multirate filter hm and the vector w which contains the frequencies in radians at which grpdelay calculated the delay. Group delay is
![]()
The frequency response is evaluated at n points equally spaced around the upper half of the unit circle. For FIR filters where n is a power of two, the computation is done faster using FFTs. When you do not specify n, it defaults to 8192.
grpdelay(hm) uses FVTool to plot the magnitude and unwrapped phase of the group delay of the multirate filter hm. If ha is a vector of filters, grpdelay plots the group delay for each filter in the vector.
![]() | gain | help | ![]() |

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 |