%% Compute Cost of Complex Bandpass Decimator
% Compute the implementation cost of a complex bandpass decimator using the cost function.
%
% Create a dsp.ComplexBandpassDecimator object. Set the DecimationFactor to 12, the CenterFrequency to 5000 Hz, and the SampleRate to 44,100 Hz.

cbp = dsp.ComplexBandpassDecimator(12,5000,44100)

%
% Compute the implementation cost of cbp using the cost function.

c = cost(cbp)

% Copyright 2012 The MathWorks, Inc.