%% Get Filters of Digital Down Converter
% Get handles to decimation filter objects of the dsp.DigitalDownConverter System object™.
% Create a dsp.DigitalDownConverter System object with the default settings.

dwnConv = dsp.DigitalDownConverter

% Use the getFilters function to obtain the filter System objects and the CIC normalization factor that form the decimation filter cascade.
% To use the getFilters function on an unlocked System object, you must specify the filter arithmetic through the 'Arithmetic' input of the getFilters function.

S = getFilters(dwnConv,'Arithmetic','Fixed-point')

% Alternatively, you can lock the System object by passing a valid input to the object algorithm. In this case, you can use the getFilters function without specifying the filter arithmetic.
% Copyright 2018 The MathWorks, Inc.
%