FUNCTION REFERENCE
grpdelay
Group delay of a digital filter, in samples.
Group delay of a digital filter, in samples.
Syntax
[gd, w] = grpdelay(b, a, n)Syntax
[gd, f] = grpdelay(b, a, n, fs)Syntax
[gd, w] = grpdelay(b, a, n, 'whole')Syntax
gd = grpdelay(b, a, w)Syntax
gd = grpdelay(sos, n)Syntax
gd = grpdelay(d, n)Same frequency forms as freqz: n points (default 512, at most 65536) from 0 to pi rad/sample, 'whole' for 0 to 2*pi, fs for Hz, or a frequency vector. Points where the response is zero are NaN. A bare call plots it.
Example
d = grpdelay([1 1], 1, 128); % 128-by-1 column of 0.5Example
[gd, f] = grpdelay([0 0 1], 1, 4, 100); % gd = 2, f = [0; 12.5; 25; 37.5]Differences from MATLAB: undefined points are NaN.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.