%% Get Group Delays
% Create a default octaveFilterBank object. Call getGroupDelays to get the group delay of each octave filter at its center frequency.

octFiltBank = octaveFilterBank;
[gd,cf] = getGroupDelays(octFiltBank);

%
% Plot the group delay as a function of filter center frequency.

loglog(cf,gd,'k-',cf,gd,'bo')
grid on
xlabel('Frequency (Hz)')
ylabel('Delay (samples)')
xticks(round(cf))
yticks(round(fliplr(gd)))

%
% Copyright 2018 The MathWorks, Inc.