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

upConv = dsp.DigitalUpConverter

% 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(upConv,'Arithmetic','Fixed-point')

%  The first filter field is empty when the object bypasses the first filter stage.
% 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.
%