%% Get Branches of dsp.CoupledAllpassFilter
% Get the internal allpass branches of the dsp.CoupledAllpassFilter System object™.
%% Minimum Multiplier
% Create a dsp.CoupledAllpassFilter object with filter structure set to 'Minimum multiplier'. Use the getBranches function to get the internal allpass filter objects.

caf = dsp.CoupledAllpassFilter
s = getBranches(caf)
s.Branch1
s.Branch2

%
%% Wave Digital Filter
% Change the filter structure to 'Wave Digital Filter'. The internal allpass filters display WDF coefficients.

caf.Structure = 'Wave Digital Filter'
s = getBranches(caf)
s.Branch1
s.Branch2

%% Lattice
% When the filter structure is set to 'Lattice', the internal allpass filters display the lattice coefficients.

caf.Structure = 'Lattice'
s = getBranches(caf)
s.Branch1
s.Branch2

% Copyright 2018 The MathWorks, Inc.